public override void Enable() { Initialized = false; Updater.GetPointers(); _pointer = SettingsProvider.Load<OffsetSettings>().RocketLeague; var tempProcess = MemoryHelpers.GetProcessIfRunning(ProcessName); if (tempProcess == null) return; _memory = new Memory(tempProcess); Initialized = true; }
public WoWModel(MainManager mainManager) : base(mainManager, SettingsProvider.Load<WoWSettings>(), new WoWDataModel()) { Name = "WoW"; ProcessName = "Wow-64"; Scale = 4; // Currently WoW is locked behind a hidden trigger (obviously not that hidden if you're reading this) // It is using memory reading and lets first try to contact Blizzard var settings = SettingsProvider.Load<GeneralSettings>(); Enabled = settings.GamestatePort == 62575 && Settings.Enabled; Initialized = false; _pointer = SettingsProvider.Load<OffsetSettings>().WorldOfWarcraft; //_pointer = new GamePointersCollection //{ // Game = "WorldOfWarcraft", // GameVersion = "7.0.3.22810", // GameAddresses = new List<GamePointer> // { // new GamePointer // { // Description = "ObjectManager", // BasePointer = new IntPtr(0x1578070) // }, // new GamePointer // { // Description = "LocalPlayer", // BasePointer = new IntPtr(0x169DF10) // }, // new GamePointer // { // Description = "NameCache", // BasePointer = new IntPtr(0x151DCE8) // }, // new GamePointer // { // Description = "TargetGuid", // BasePointer = new IntPtr(0x179C940) // } // } //}; //var res = JsonConvert.SerializeObject(_pointer, Formatting.Indented); }