Interface IGame
- Namespace
- AstraEngine.Core
- Assembly
- AstraEngine.Core.dll
The Engine executes the core game loop propagating the amount of time passed between calls to tick.
public interface IGame
Properties
CurrentTime
Returns the current time in seconds since the game started
double CurrentTime { get; }
Property Value
IsRunning
Returns true if the game is running
bool IsRunning { get; }
Property Value
Root
The root component of the game.
Entity Root { get; }
Property Value
Methods
Initialize()
Initializes the game. This method is called exactly once before the main game loop.
void Initialize()
OnExit()
Executed after the game has finished running.
void OnExit()