Пример #1
0
 public Entity(PathOfExile Poe, Poe.Entity entity)
 {
     this.Poe            = Poe;
     this.InternalEntity = entity;
     this.Components     = this.InternalEntity.GetComponents();
     this.Path           = this.InternalEntity.Path;
     this.cachedId       = this.InternalEntity.ID;
     this.LongId         = this.InternalEntity.LongId;
 }
Пример #2
0
        public EntityWrapper(GameController Poe, Poe.Entity entity)
        {
            this.Root = Poe;

            this.InternalEntity = entity;
            this.Components     = new Dictionary <string, int>();
            foreach (KeyValuePair <string, int> kv in this.InternalEntity.EnumComponents(true))
            {
                Components.Add(kv.Key, kv.Value);
            }
            this.Path     = this.InternalEntity.Path;
            this.cachedId = this.InternalEntity.ID;
            this.LongId   = this.InternalEntity.LongId;
        }
Пример #3
0
 public ItemStats(Poe.Entity item)
 {
     this.item = item;
     if (ItemStats.translate == null)
     {
         ItemStats.translate = new ItemStats.StatTranslator();
     }
     this.stats = new float[Enum.GetValues(typeof(ItemStat)).Length];
     this.ParseSockets();
     this.ParseExplicitMods();
     if (item.HasComponent<Weapon>())
     {
         this.ParseWeaponStats();
     }
 }
Пример #4
0
 public ItemStats(Poe.Entity item)
 {
     this.item = item;
     if (ItemStats.translate == null)
     {
         ItemStats.translate = new ItemStats.StatTranslator();
     }
     this.stats = new float[Enum.GetValues(typeof(ItemStat)).Length];
     this.ParseSockets();
     this.ParseExplicitMods();
     if (item.HasComponent <Weapon>())
     {
         this.ParseWeaponStats();
     }
 }