Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 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);
 }