Метод | Описание | |
---|---|---|
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.
|
public Deregister ( ISensor sensor ) : void | ||
sensor | ISensor | The hardware sensor to deregister. |
Результат | void |
public Register ( ISensor sensor ) : void | ||
sensor | ISensor | The hardware sensor to register. |
Результат | void |
public Render ( IGameContext gameContext, IRenderContext renderContext ) : void | ||
gameContext | IGameContext | The current game context. |
renderContext | IRenderContext | The current render context. |
Результат | void |
public Update ( IGameContext gameContext, IUpdateContext updateContext ) : void | ||
gameContext | IGameContext | The current game context. |
updateContext | IUpdateContext | The current update context. |
Результат | void |