Exemplo n.º 1
0
 public ItemInfo(ItemClassCode classCode, ItemType type, string name = null, string description = null)
 {
     if (Name == null)
     {
         this.Name = TypeCode.ToString() + " " + TypeCode.ToString();
     }
     this.Name        = name;
     this.Description = description;
     this.TypeCode    = type;
     this.ClassCode   = classCode;
 }
 public ItemConsumableInfo(ItemClassCode classCode, ItemType type, float marketValue, string name = null, string description = null) :
     base(classCode, type, name, description)
 {
     this.MarketValue = marketValue;
 }