Example #1
0
 private Item(int id, string name, int price, ItemType type, string baseDescription, Ability ability)
 {
     ID = id;
     Name = name;
     Price = price;
     Type = type;
     Ability = ability;
     Description = string.Format("{0}\n{1}: {2}", baseDescription, Ability.Name, Ability.Description);
 }
Example #2
0
 public static Item Create(int id, string name, int price, ItemType type, string description, Ability ability)
 {
     return new Item(id, name, price, type, description, ability);
 }