Class DGame

The main game loop manager. Meant to be overridden.

Inherits from

  • Object (base class)

Fields

Name Type Description
activeScene Scene The currently active scene
currentState EngineState Current state of the game
editor Editor The editor controller, resolved by reflection.d
instance DGame The instance to be running from
stateFlags GameStateFlags* The current update settings

Properties

Name Type Description
title [get] string Overrideable. Returns the name of the window.

Methods

Name Description
run Main Game loop.
onDraw To be overridden, called once per frame during the draw cycle.
onInitialize To be overridden, logic for when the game is being initalized.
onRefresh To be overridden, called when refreshing content.
onSaveState To be overridden, called when resetting and the state must be saved.
onShutdown To be overridden, called when the came is closing.
onUpdate To be overridden, called once per frame during the update cycle.

Authors

Copyright

License