MVC shop project for software architecture, in Unity.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

22 lines
915 B

/// <summary>
/// This class holds data for an Item. Currently it has a name, an iconName and a base price.
/// </summary>
public class Item
{
public readonly string name;
public readonly string iconName;
public int basePrice { get; private set; } // This is the base price for the item, the buying and selling prices can be
// generated based on this value.
//------------------------------------------------------------------------------------------------------------------------
// Item()
//------------------------------------------------------------------------------------------------------------------------
public Item(string name, string iconName, int pbasePrice)
{
this.name = name;
this.iconName = iconName;
this.basePrice = pbasePrice;
}
}