Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
 public void EntityAdded(EntityWrapper entity)
 {
 }
Exemplo n.º 3
0
 public void EntityRemoved(EntityWrapper entity)
 {
 }
Exemplo n.º 4
0
        public override bool Equals(object obj)
        {
            EntityWrapper entity = obj as EntityWrapper;

            return(entity != null && entity.LongId == this.LongId);
        }