Beispiel #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");
 }
Beispiel #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;
            }
        }
Beispiel #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");
        }
Beispiel #4
0
 public LuaTString(ExternalProcessReader memory, IntPtr address)
 {
     Address = address;
     _memory = memory;
     _luaTString = memory.Read<LuaTStringHeader>(address);
 }
Beispiel #5
0
 public LuaTString(ExternalProcessReader memory, IntPtr address)
 {
     Address     = address;
     _memory     = memory;
     _luaTString = memory.Read <LuaTStringHeader>(address);
 }
Beispiel #6
0
 public LuaTable(ExternalProcessReader memory, IntPtr address)
 {
     Address = address;
     _memory = memory;
     _luaTable = _memory.Read<LuaTableStuct>(address);
 }
Beispiel #7
0
 private static void PerfTestMarshalStructRead(ExternalProcessReader reader)
 {
     reader.Read<MarshalStruct>(LocalPlayerNumKnownSpells, true);
 }
Beispiel #8
0
 private static void PerfTestKnownSpells(ExternalProcessReader reader)
 {
     reader.Read<int>(LocalPlayerNumKnownSpells, true);
 }
Beispiel #9
0
 public LuaNode(ExternalProcessReader memory, IntPtr address)
 {
     Address = address;
     _memory = memory;
     _luaNode = memory.Read<LuaNodeStruct>(address);
 }
Beispiel #10
0
 public LuaNode(ExternalProcessReader memory, IntPtr address)
 {
     Address  = address;
     _memory  = memory;
     _luaNode = memory.Read <LuaNodeStruct>(address);
 }
Beispiel #11
0
 public LuaTable(ExternalProcessReader memory, IntPtr address)
 {
     Address   = address;
     _memory   = memory;
     _luaTable = _memory.Read <LuaTableStuct>(address);
 }
Beispiel #12
0
 private static void PerfTestMarshalStructRead(ExternalProcessReader reader)
 {
     reader.Read <MarshalStruct>(LocalPlayerNumKnownSpells, true);
 }
Beispiel #13
0
 private static void PerfTestKnownSpells(ExternalProcessReader reader)
 {
     reader.Read <int>(LocalPlayerNumKnownSpells, true);
 }