Exemplo n.º 1
0
 public IntPtr Apply(ExternalProcessReader bm, IntPtr address)
 {
     switch (Type)
     {
         case LeaType.Byte:
             return (IntPtr)bm.Read<byte>(address);
         case LeaType.Word:
             return (IntPtr)bm.Read<ushort>(address);
         case LeaType.Dword:
             return (IntPtr)bm.Read<uint>(address);
     }
     throw new InvalidDataException("Unknown LeaType");
 }
Exemplo n.º 2
0
        private static void SetObjectType(ExternalProcessReader memory, IntPtr ptr)
        {
            var vtmPtr = memory.Read <IntPtr>(ptr + Offsets.UIObject.GetTypeNameVfuncOffset);

            if (IsValidTypePtr(memory, vtmPtr))
            {
                var strPtr = memory.Read <IntPtr>(false, vtmPtr + 1);
                var str    = memory.ReadString(strPtr, Encoding.UTF8, 128);
                UIObjectTypeCache[ptr] = GetUIObjectTypeFromString(str);
            }
            else
            {
                UIObjectTypeCache[ptr] = UIObjectType.None;
            }
        }
Exemplo n.º 3
0
        public IntPtr Apply(ExternalProcessReader bm, IntPtr address)
        {
            switch (Type)
            {
            case LeaType.Byte:
                return((IntPtr)bm.Read <byte>(address));

            case LeaType.Word:
                return((IntPtr)bm.Read <ushort>(address));

            case LeaType.Dword:
                return((IntPtr)bm.Read <uint>(address));
            }
            throw new InvalidDataException("Unknown LeaType");
        }
Exemplo n.º 4
0
 public LuaTString(ExternalProcessReader memory, IntPtr address)
 {
     Address = address;
     _memory = memory;
     _luaTString = memory.Read<LuaTStringHeader>(address);
 }
Exemplo n.º 5
0
 public LuaTString(ExternalProcessReader memory, IntPtr address)
 {
     Address     = address;
     _memory     = memory;
     _luaTString = memory.Read <LuaTStringHeader>(address);
 }
Exemplo n.º 6
0
 public LuaTable(ExternalProcessReader memory, IntPtr address)
 {
     Address = address;
     _memory = memory;
     _luaTable = _memory.Read<LuaTableStuct>(address);
 }
Exemplo n.º 7
0
 private static void PerfTestMarshalStructRead(ExternalProcessReader reader)
 {
     reader.Read<MarshalStruct>(LocalPlayerNumKnownSpells, true);
 }
Exemplo n.º 8
0
 private static void PerfTestKnownSpells(ExternalProcessReader reader)
 {
     reader.Read<int>(LocalPlayerNumKnownSpells, true);
 }
Exemplo n.º 9
0
 public LuaNode(ExternalProcessReader memory, IntPtr address)
 {
     Address = address;
     _memory = memory;
     _luaNode = memory.Read<LuaNodeStruct>(address);
 }
Exemplo n.º 10
0
 public LuaNode(ExternalProcessReader memory, IntPtr address)
 {
     Address  = address;
     _memory  = memory;
     _luaNode = memory.Read <LuaNodeStruct>(address);
 }
Exemplo n.º 11
0
 public LuaTable(ExternalProcessReader memory, IntPtr address)
 {
     Address   = address;
     _memory   = memory;
     _luaTable = _memory.Read <LuaTableStuct>(address);
 }
Exemplo n.º 12
0
 private static void PerfTestMarshalStructRead(ExternalProcessReader reader)
 {
     reader.Read <MarshalStruct>(LocalPlayerNumKnownSpells, true);
 }
Exemplo n.º 13
0
 private static void PerfTestKnownSpells(ExternalProcessReader reader)
 {
     reader.Read <int>(LocalPlayerNumKnownSpells, true);
 }