Class GameServiceExtensions
The engine systems a Game exposes as properties, reached through the service registry so that every
toolkit helper can take an IGame: the type a script's Game property has.
public static class GameServiceExtensions
- Inheritance
-
GameServiceExtensions
Remarks
Game registers each of these in Services when it is constructed, so on a game they return the same objects as the properties. A host that registered none throws with the service's name rather than failing later on a null.
Methods
GetAudioSystem(IGame)
The audio system.
public static AudioSystem GetAudioSystem(this IGame game)
Parameters
gameIGame
Returns
GetGraphicsDeviceManager(IGame)
The graphics device manager, which owns the device's settings and the back buffer.
public static IGraphicsDeviceManager GetGraphicsDeviceManager(this IGame game)
Parameters
gameIGame
Returns
GetInputManager(IGame)
The input manager: keyboard, mouse and the other devices.
public static InputManager GetInputManager(this IGame game)
Parameters
gameIGame
Returns
GetSceneSystem(IGame)
The scene system: the root scene and the graphics compositor.
public static SceneSystem GetSceneSystem(this IGame game)
Parameters
gameIGame
Returns
GetScriptSystem(IGame)
The script system, which schedules the scripts and the toolkit's root script.
public static ScriptSystem GetScriptSystem(this IGame game)
Parameters
gameIGame