IEngineHookΒΆ
-
interface
IEngineHook
An interface representing a low-level engine hook. These hooks are should be registered in the dependency injection container. All registered engine hooks will be automatically fired during execution of the game.
-
void
Render
(IGameContext gameContext, IRenderContext renderContext) The render callback for the engine hook. This is triggered right before the rendering of the world manager.
Parameters: - gameContext (Protogame.IGameContext) – The game context.
- renderContext (Protogame.IRenderContext) – The render context.
-
void
Update
(IGameContext gameContext, IUpdateContext updateContext) The update callback for the engine hook. This is triggered right before the update of the world manager.
Parameters: - gameContext (Protogame.IGameContext) – The game context.
- updateContext (Protogame.IUpdateContext) – The update context.
-
void
Update
(Protogame.IServerContext serverContext, IUpdateContext updateContext) The update callback for the engine hook on a server. This is triggered right before the update of the world manager.
Parameters: - serverContext (Protogame.IServerContext) – The server context.
- updateContext (Protogame.IUpdateContext) – The update context.
-
void