MiniRPG/scripts/objects/items/Item.cs

17 lines
No EOL
391 B
C#

public class Item
{
public string Name { get; set; }
public string Description { get; set; }
public int Amount { get; set; }
public virtual string Type { get; set; }
public virtual void Action()
{
Console.WriteLine("Item has been used");
}
public Item(string name, string description){
Name = name;
Description = description;
}
}