C# Класс Protogame.DefaultSensorEngine

The default implementation of an ISensorEngine.
Наследование: ISensorEngine
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

DefaultSensorEngine() публичный Метод

Initializes a new instance of DefaultSensorEngine.
public DefaultSensorEngine ( ) : System
Результат System

Deregister() публичный Метод

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.
Результат void

Register() публичный Метод

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.
Результат void

Render() публичный Метод

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.
Результат void

Update() публичный Метод

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.
Результат void