EventEngineHook

Warning

This documentation is for an internal class. This class is not intended to be used by developers, and is used internally within the engine to provide functionality.

Information documented here may not be up to date.

class EventEngineHook : System.Object, IEngineHook

A game engine hook that raised appropriate input events as they occur.

public 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.
public void Update(IGameContext gameContext, IUpdateContext updateContext)

The update callback for the engine hook. This is triggered right before the update of the world manager.

For this engine hook, this updates and fires input events as appropriate.

Parameters:
  • gameContext (Protogame.IGameContext) – The game context.
  • updateContext (Protogame.IUpdateContext) – The update context.
public void Update(Protogame.IServerContext serverContext, IUpdateContext updateContext)
Parameters:
  • serverContext (Protogame.IServerContext) –
  • updateContext (Protogame.IUpdateContext) –