Ejemplo n.º 1
0
 public WoWObject(uint bAddress, WoWConnection wowConnection) {
     this.BaseAddress = bAddress;
     this.Guid = wowConnection.Connection.ReadUInt64(this.BaseAddress + MemoryOffsets.ObjectManagerLocalGUID);
     ulong temp = this.guid >> 52;
     switch ((this.guid >> 52) & 0xF0F) {
         case 0x000:
             this.UnitType = WoWUnitType.Player;
             break;
         case 0xF00:
             this.UnitType = WoWUnitType.Spell;
             break;
         case 0xF03:
             this.UnitType = WoWUnitType.NPC;
             break;
         case 0xF01:
             this.UnitType = WoWUnitType.WorldObject;
             break;
         case 0xF04:
             this.UnitType = WoWUnitType.PermanentPet;
             break;
         default:
             this.UnitType = WoWUnitType.Unknown;
             break;
     }
 }
Ejemplo n.º 2
0
        public WoWObject(uint bAddress, WoWConnection wowConnection)
        {
            this.BaseAddress = bAddress;
            this.Guid        = wowConnection.Connection.ReadUInt64(this.BaseAddress + MemoryOffsets.ObjectManagerLocalGUID);
            ulong temp = this.guid >> 52;

            switch ((this.guid >> 52) & 0xF0F)
            {
            case 0x000:
                this.UnitType = WoWUnitType.Player;
                break;

            case 0xF00:
                this.UnitType = WoWUnitType.Spell;
                break;

            case 0xF03:
                this.UnitType = WoWUnitType.NPC;
                break;

            case 0xF01:
                this.UnitType = WoWUnitType.WorldObject;
                break;

            case 0xF04:
                this.UnitType = WoWUnitType.PermanentPet;
                break;

            default:
                this.UnitType = WoWUnitType.Unknown;
                break;
            }
        }
Ejemplo n.º 3
0
 public WoWObject(WoWObject other) {
     this.BaseAddress = other.BaseAddress;
     this.Guid = other.Guid;
     this.UnitType = other.UnitType;
 }
Ejemplo n.º 4
0
 public WoWObject(WoWObject other)
 {
     this.BaseAddress = other.BaseAddress;
     this.Guid        = other.Guid;
     this.UnitType    = other.UnitType;
 }