示例#1
0
        public RocketLeagueModel(DeviceManager deviceManager, LuaManager luaManager) : base(deviceManager, luaManager)
        {
            Settings  = SettingsProvider.Load <RocketLeagueSettings>();
            DataModel = new RocketLeagueDataModel();
            ProcessNames.Add("RocketLeague");

            // Generate a new offset when the game is updated
            //var offset = new GamePointersCollection
            //{
            //    Game = "RocketLeague",
            //    GameVersion = "1.27",
            //    GameAddresses = new List<GamePointer>
            //    {
            //        new GamePointer
            //        {
            //            Description = "Boost",
            //            BasePointer = new IntPtr(0x016D5084),
            //            Offsets = new[] {0xC4, 0x214, 0x320, 0x73C, 0x224}
            //        }
            //    }
            //};
            //var res = JsonConvert.SerializeObject(offset, Formatting.Indented);
        }
示例#2
0
        public RocketLeagueModel(DeviceManager deviceManager, LuaManager luaManager) : base(deviceManager, luaManager)
        {
            Settings  = SettingsProvider.Load <RocketLeagueSettings>();
            DataModel = new RocketLeagueDataModel();
            ProcessNames.Add("RocketLeague");

            // Generate a new offset when the game is updated
            var offset = new GamePointersCollection
            {
                Game          = "RocketLeague",
                GameVersion   = "1.30",
                GameAddresses = new List <GamePointer>
                {
                    new GamePointer
                    {
                        Description = "Boost",
                        BasePointer = new IntPtr(0x016E00B4),
                        Offsets     = new[] { 0xC4, 0x18, 0x388, 0x73C, 0x224 }
                    }
                }
            };
            var res = JsonConvert.SerializeObject(offset, Formatting.Indented);
        }