Beispiel #1
0
 public GameController(Memory memory)
 {
     Memory = memory;
     Area = new AreaController(this);
     EntityListWrapper = new EntityListWrapper(this);
     Window = new GameWindow(memory.Process);
     Game = new TheGame(memory);
     Files = new FsController(memory);
 }
Beispiel #2
0
 public TheGame(Memory m)
 {
     this.m = m;
     this.address = m.ReadInt(m.BaseAddress + Offsets.Base, new int[]
     {
         4,
         124
     });
     this.game = this;
 }
Beispiel #3
0
 public void DoPatternScans(Memory m)
 {
     int[] array = m.FindPatterns(new Pattern[]
     {
         Offsets.maphackPattern,
         Offsets.zoomhackPattern,
         Offsets.fullbrightPattern,
         Offsets.basePtrPattern,
         Offsets.fileRootPattern,
         Offsets.areaChangePattern
     });
     MaphackFunc = array[0];
     ZoomHackFunc = array[1] + 247;
     Fullbright1 = m.ReadInt(m.BaseAddress + array[2] + 1487) - m.BaseAddress;
     Fullbright2 = m.ReadInt(m.BaseAddress + array[2] + 1573) - m.BaseAddress;
     Base = m.ReadInt(m.BaseAddress + array[3] + 22) - m.BaseAddress;
     FileRoot = m.ReadInt(m.BaseAddress + array[4] + 40) - m.BaseAddress;
     AreaChangeCount = m.ReadInt(m.BaseAddress + array[5] + 13) - m.BaseAddress;
 }
Beispiel #4
0
 public void DoPatternScans(Memory m)
 {
     int[] array = m.FindPatterns(new[]
     {
         basePtrPattern,
         fileRootPattern,
         areaChangePattern,
     });
     Base = m.ReadInt(m.AddressOfProcess + array[0] + 22) - m.AddressOfProcess;
     FileRoot = m.ReadInt(m.AddressOfProcess + array[1] + 40) - m.AddressOfProcess;
     AreaChangeCount = m.ReadInt(m.AddressOfProcess + array[2] + 13) - m.AddressOfProcess;
 }
Beispiel #5
0
 public FileInMemory(Memory m, int address)
 {
     M = m;
     Address = address;
 }
Beispiel #6
0
 public FileIndex(Memory mem)
 {
     this.files = new Dictionary<string, int>();
     this.mem = mem;
     this.BaseItemTypes = new BaseItemTypes(mem, this.FindFile("Data/BaseItemTypes.dat"));
 }
Beispiel #7
0
 public Buff(int address, Memory mem)
 {
     this.address = address;
     this.Memory = mem;
 }
Beispiel #8
0
 public TheGame(Memory m)
 {
     M = m;
     Address = m.ReadInt(m.AddressOfProcess + Offsets.Base, new[] {4, 124});
     Game = this;
 }
Beispiel #9
0
 public TheGame(Memory m)
 {
     this.M = m;
     this.Address = m.ReadInt(m.BaseAddress + Offsets.Base, new[]{ 4, 124 });
     this.Game = this;
 }
Beispiel #10
0
 public FileInMemory(Memory m, int address)
 {
     this.m = m;
     this.address = address;
 }
Beispiel #11
0
 public void DoPatternScans(Memory m)
 {
     int[] array = m.FindPatterns(basePtrPattern, fileRootPattern, areaChangePattern, inGameOffsetPattern);//, configPattern);
     Base = m.ReadInt(m.AddressOfProcess + array[0] + 22) - m.AddressOfProcess;
     FileRoot = m.ReadInt(m.AddressOfProcess + array[1] + 40) - m.AddressOfProcess;
     AreaChangeCount = m.ReadInt(m.AddressOfProcess + array[2] + 13) - m.AddressOfProcess;
     InGameOffset = m.ReadInt(m.AddressOfProcess + array[3] + 0x13);
     //PoeConfigIni = m.ReadString(m.ReadInt(m.AddressOfProcess + array[3] + 0xF));
 }