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; }
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; }
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(); } }
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(); } }