public EzGetItemModelResult( GetItemModelResult result ) { if (result.item != null) { Item = new EzItemModel(result.item); } }
public EzGetItemResult( GetItemSetResult result ) { Items = new List <EzItemSet>(); foreach (var item_ in result.items) { Items.Add(new EzItemSet(item_)); } if (result.itemModel != null) { ItemModel = new EzItemModel(result.itemModel); } if (result.inventory != null) { Inventory = new EzInventory(result.inventory); } }
public EzGetItemWithSignatureResult( GetItemWithSignatureResult result ) { Items = new List <EzItemSet>(); foreach (var item_ in result.items) { Items.Add(new EzItemSet(item_)); } if (result.itemModel != null) { ItemModel = new EzItemModel(result.itemModel); } if (result.inventory != null) { Inventory = new EzInventory(result.inventory); } Body = result.body; Signature = result.signature; }
public void Initialize( EzItemModel itemModel, EzItemSet itemSet ) { _itemSet = itemSet; var metadata = JsonMapper.ToObject <Metadata>(itemModel.Metadata); icon.text = metadata.displayName; rarity.text = ""; for (int i = 0; i < metadata.rarity + 1; i++) { rarity.text += "★"; } while (rarity.text.Length < 5) { rarity.text = "☆" + rarity.text; } }