public EntityLabel GetLabelForEntity(EntityWrapper entity) { HashSet <int> hashSet = new HashSet <int>(); int entityLabelMap = this.Internal.Game.IngameState.EntityLabelMap; int num = entityLabelMap; while (true) { hashSet.Add(num); if (this.Memory.ReadInt(num + 8) == entity.Address) { break; } num = this.Memory.ReadInt(num); if (hashSet.Contains(num) || num == 0 || num == -1) { return(null); } } return(this.Internal.ReadObject <EntityLabel>(num + 12)); }
public void EntityAdded(EntityWrapper entity) { }
public void EntityRemoved(EntityWrapper entity) { }
public override bool Equals(object obj) { EntityWrapper entity = obj as EntityWrapper; return(entity != null && entity.LongId == this.LongId); }