public Gem(JSONProxy.Item item) : base(item) { this.Properties = ProxyMapper.GetProperties(item.Properties); this.ItemType = Model.ItemType.Gem; this.Socket = item.Socket; this.Color = item.Color; this.Requirements = ProxyMapper.GetRequirements(item.Requirements); this.Level = getLevel(); }
public Gear(JSONProxy.Item item) : base(item) { Sockets = GetSockets(item); Explicitmods = item.ExplicitMods; SocketedItems = GetSocketedItems(item); Implicitmods = item.ImplicitMods; Requirements = ProxyMapper.GetRequirements(item.Requirements); ItemType = Model.ItemType.Gear; GearType = GearTypeFactory.GetType(this); BaseType = GearTypeFactory.GetBaseType(this); }
public Gem(JSONProxy.Item item) : base(item) { this.Properties = ProxyMapper.GetProperties(item.Properties); this.ItemType = Model.ItemType.Gem; this.Socket = item.Socket; this.Color = item.Color; this.Requirements = ProxyMapper.GetRequirements(item.Requirements); this.UniqueIDHash = base.getHash(); }
public Gear(JSONProxy.Item item) : base(item) { this.Rarity = getRarity(item); this.Sockets = getSockets(item); this.Explicitmods = item.ExplicitMods; this.SocketedItems = getSocketedItems(item); this.Implicitmods = item.ImplicitMods; this.Requirements = ProxyMapper.GetRequirements(item.Requirements); this.ItemType = Model.ItemType.Gear; this.GearType = GearTypeFactory.GetType(this); this.BaseType = GearTypeFactory.GetBaseType(this); }
internal Gear(JSONProxy.Item item) : base(item) { this.Rarity = getRarity(item); this.FlavourText = item.FlavourText; this.Sockets = item.Sockets.Select(proxy => new Socket(proxy)).ToList(); this.Explicitmods = item.ExplicitMods; this.SocketedItems = item.SocketedItems.Select(proxy => (Gem)ItemFactory.Get(proxy)).ToList(); this.Implicitmods = item.ImplicitMods; this.Requirements = ProxyMapper.GetRequirements(item.Requirements); this.ItemType = Model.ItemType.Gear; this.GearType = GearTypeFactory.GetType(this); this.BaseType = GearTypeFactory.GetBaseType(this); }
protected SocketableItem(JSONProxy.Item item) : base(item) { this.Socket = item.Socket; this.Color = item.Colour; this.Requirements = ProxyMapper.GetRequirements(item.Requirements); }