Пример #1
0
 unsafe private void Read()
 {
     FishingState fs = new FishingState();
     MemoryProvider.ReadProcessMemory(pol.Handle, (IntPtr)((int)pol.BaseAddress + OFFSET.FISH_INFO), &fs, (uint)Marshal.SizeOf(fs), null);
     fishingState = fs;
     Fish f = new Fish();
     MemoryProvider.ReadProcessMemory(pol.Handle, (IntPtr)(fs.fishPtr), &f, (uint)Marshal.SizeOf(f), null);
     fish = f;
 }
Пример #2
0
 private unsafe void Read()
 {
     FishingState fs = new FishingState();
     MemoryProvider.ReadProcessMemory(windower.pol.Handle, (IntPtr) ((int) windower.pol.BaseAddress + Offset.Get("FISH_INFO")), &fs, (uint) Marshal.SizeOf(fs), null);
     fishingState = fs;
     Fish f = new Fish();
     MemoryProvider.ReadProcessMemory(windower.pol.Handle, (IntPtr) (fs.fishPtr), &f, (uint) Marshal.SizeOf(f), null);
     fish = f;
 }