public unsafe DrawDistanceHook(Config config, IReloadedHooks hooks, IReloadedHooksUtilities utilities) { _config = config; _optimizeHook = hooks.CreateHook <SetParamOptimize>(ModifyObjectDistance, 0x0043DF40).Activate(); }
public ControllerHook(IReloadedHooks hooks) { _hooks = hooks; _inputsHook = _hooks.CreateHook <HandleInputs>(HandleInputsImpl, 0x00513B70).Activate(); _lastFrameInputs = new Sewer56.SonicRiders.Structures.Input.PlayerInput[Player.MaxNumberOfPlayers]; }