Пример #1
0
        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();
        }
Пример #2
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);
 }
Пример #3
0
        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();
        }
Пример #4
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);
 }
Пример #5
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);
 }
Пример #6
0
 protected SocketableItem(JSONProxy.Item item) : base(item)
 {
     this.Socket       = item.Socket;
     this.Color        = item.Colour;
     this.Requirements = ProxyMapper.GetRequirements(item.Requirements);
 }