C# Class Protogame.DefaultSensorEngine

The default implementation of an ISensorEngine.
Inheritance: ISensorEngine
Afficher le fichier Open project: RedpointGames/Protogame

Méthodes publiques

Méthode Description
DefaultSensorEngine ( ) : System

Initializes a new instance of DefaultSensorEngine.

Deregister ( ISensor sensor ) : void

Deregisters a hardware sensor from the sensor engine, ensuring that it is no longer updated as the game runs.

Register ( ISensor sensor ) : void

Registers a hardware sensor with the sensor engine, ensuring that it is updated as the game runs.

Render ( IGameContext gameContext, IRenderContext renderContext ) : void

Internally called by SensorEngineHook to update sensors during the render step.

Update ( IGameContext gameContext, IUpdateContext updateContext ) : void

Internally called by SensorEngineHook to update sensors during the update step.

Method Details

DefaultSensorEngine() public méthode

Initializes a new instance of DefaultSensorEngine.
public DefaultSensorEngine ( ) : System
Résultat System

Deregister() public méthode

Deregisters a hardware sensor from the sensor engine, ensuring that it is no longer updated as the game runs.
public Deregister ( ISensor sensor ) : void
sensor ISensor The hardware sensor to deregister.
Résultat void

Register() public méthode

Registers a hardware sensor with the sensor engine, ensuring that it is updated as the game runs.
public Register ( ISensor sensor ) : void
sensor ISensor The hardware sensor to register.
Résultat void

Render() public méthode

Internally called by SensorEngineHook to update sensors during the render step.
public Render ( IGameContext gameContext, IRenderContext renderContext ) : void
gameContext IGameContext The current game context.
renderContext IRenderContext The current render context.
Résultat void

Update() public méthode

Internally called by SensorEngineHook to update sensors during the update step.
public Update ( IGameContext gameContext, IUpdateContext updateContext ) : void
gameContext IGameContext The current game context.
updateContext IUpdateContext The current update context.
Résultat void