DGame

The main game loop manager. Meant to be overridden.

Members

Functions

onDraw
void onDraw()

To be overridden, called once per frame during the draw cycle.

onInitialize
void onInitialize()

To be overridden, logic for when the game is being initalized.

onRefresh
void onRefresh()

To be overridden, called when refreshing content.

onSaveState
void onSaveState()

To be overridden, called when resetting and the state must be saved.

onShutdown
void onShutdown()

To be overridden, called when the came is closing.

onUpdate
void onUpdate()

To be overridden, called once per frame during the update cycle.

run
void run()

Main Game loop.

Properties

title
string title [@property getter]

Overrideable. Returns the name of the window.

Static variables

instance
DGame instance;

The instance to be running from

Variables

activeScene
Scene activeScene;

The currently active scene

currentState
EngineState currentState;

Current state of the game

editor
Editor editor;

The editor controller, resolved by reflection.d

stateFlags
GameStateFlags* stateFlags;

The current update settings

Meta