AgaHackTools.Example.MemoryModule.OffsetScanner.EntityID C# (CSharp) Method

EntityID() static private method

static private EntityID ( ISmartMemory memUtils ) : void
memUtils ISmartMemory
return void
        static void EntityID(ISmartMemory memUtils)
        {
            scan = memUtils["client.dll"].Find(
                new byte[] { 0x74, 0x72, 0x80, 0x79, 0x00, 0x00, 0x8B, 0x56, 0x00, 0x89, 0x55, 0x00, 0x74, 0x17 },
                "xxxx??xx?xx?xx");
            if (scan.Success)
            {
                //byte tmp = memUtils.Read<byte>((IntPtr)(lastScan.Address.ToInt32() + 8));
                Offsets.EntityId = (IntPtr)memUtils.Read<byte>((IntPtr)(scan.Address.ToInt32() + 8));
                Logger.Info(ObjectEx.GetName(() => Offsets.EntityId) + "\n" + Offsets.EntityId.ToString("X8"));
            }
        }