1
0
forked from s425077/PotatoPlan
JoelForkTest/Game1/Sources/Objects/InventorySystem/Items.cs
2020-05-06 16:22:30 +02:00

42 lines
694 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Items
{
private String itemType;
private int Weight;
private int Index;
public Items(String newItemType, int newWeight, int newIndex)
{
itemType = newItemType;
Weight = newWeight;
Index = newIndex;
}
public void setItem(Items newItem)
{
itemType = newItem.itemType;
Weight = newItem.Weight;
}
public String getItemType()
{
return itemType;
}
public int getWeight()
{
return Weight;
}
public int getIndex()
{
return Index;
}
}