Esempio n. 1
0
 public BasicItem(RawItem rawItem)
 {
     Id            = int.TryParse(rawItem.id, out int pId) ? pId : -1;
     Type          = rawItem.type;
     Subtype       = rawItem.subtype;
     Name          = rawItem.name;
     ItemLink      = rawItem.link;
     EquipLocation = Enum.TryParse(rawItem.equiplocation, out EquipmentSlot equipmentSlot) ? equipmentSlot : EquipmentSlot.NOT_EQUIPABLE;
     ItemQuality   = int.TryParse(rawItem.quality, out int pQuality) ? (ItemQuality)pQuality : ItemQuality.POOR;
     ItemLevel     = int.TryParse(rawItem.level, out int pItemLevel) ? pItemLevel : 0;
     RequiredLevel = int.TryParse(rawItem.minLevel, out int pRequiredLevel) ? pRequiredLevel : 0;
     Price         = int.TryParse(rawItem.sellprice, out int pItemPrice) ? pItemPrice : 0;
     Count         = int.TryParse(rawItem.count, out int pCount) ? pCount : 0;
     MaxStack      = int.TryParse(rawItem.maxStack, out int pMaxStack) ? pMaxStack : 0;
     Durability    = int.TryParse(rawItem.curDurability, out int pDurability) ? pDurability : 0;
     MaxDurability = int.TryParse(rawItem.maxDurability, out int pMaxDurability) ? pMaxDurability : 0;
 }
 public ConsumableItem(RawItem rawItem) : base(rawItem)
 {
 }
Esempio n. 3
0
 public RecipeItem(RawItem rawItem) : base(rawItem)
 {
 }
Esempio n. 4
0
 public KeyItem(RawItem rawItem) : base(rawItem)
 {
 }
Esempio n. 5
0
 public ReagentItem(RawItem rawItem) : base(rawItem)
 {
 }
Esempio n. 6
0
 public ContainerItem(RawItem rawItem) : base(rawItem)
 {
 }
Esempio n. 7
0
 public WeaponItem(RawItem rawItem) : base(rawItem)
 {
 }
Esempio n. 8
0
 public MoneyItem(RawItem rawItem) : base(rawItem)
 {
 }
Esempio n. 9
0
 public QuestItem(RawItem rawItem) : base(rawItem)
 {
 }
Esempio n. 10
0
 public GemItem(RawItem rawItem) : base(rawItem)
 {
 }
Esempio n. 11
0
 public QuiverItem(RawItem rawItem) : base(rawItem)
 {
 }
Esempio n. 12
0
 public ArmorItem(RawItem rawItem) : base(rawItem)
 {
 }
Esempio n. 13
0
 public ProjectileItem(RawItem rawItem) : base(rawItem)
 {
 }
Esempio n. 14
0
 public TradeGoodItem(RawItem rawItem) : base(rawItem)
 {
 }
Esempio n. 15
0
 public MiscellaneousItem(RawItem rawItem) : base(rawItem)
 {
 }