IGameConfigurationΒΆ

interface IGameConfiguration

The game configuration interface. All of the implementations of T:Protogame.IGameConfiguration are instantiated at startup and are used to configure the dependency injection system and the game.

void ConfigureKernel(IKernel kernel)

Called at application startup to configure the kernel before the game is created.

Parameters:
  • kernel (Protoinject.IKernel) – The dependency injection kernel.
Game ConstructGame(IKernel kernel)

Called at application startup to construct the main game instance. This instance will be run as the main game.

Parameters:
  • kernel (Protoinject.IKernel) – The dependency injection kernel.
Returns:

The game instance to run.