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

EntityOff() static private method

static private EntityOff ( ISmartMemory memUtils ) : void
memUtils ISmartMemory
return void
        static void EntityOff(ISmartMemory memUtils)
        {
            scan = memUtils["client.dll"].Find(new byte[] { 0x05, 0x00, 0x00, 0x00, 0x00, 0xC1, 0xe9, 0x00, 0x39, 0x48, 0x04 }, "x????xx?xxx");
            if (scan.Success)
            {
                var tmp = memUtils.Read<int>((IntPtr)(scan.Address + 1));
                byte tmp2 = memUtils.Read<byte>((IntPtr)(scan.Address + 7));
                Offsets.EntityList = (IntPtr) tmp + tmp2 - (int)scan.OriginalAddress;
                Logger.Info(
                    ObjectEx.GetName(()=> Offsets.EntityList)+"\n"+
                    Offsets.EntityList.ToString("X8")
                    );
            }
        }