Class Game
public sealed class Game
- Inheritance
-
Game
- Inherited Members
Constructors
Game()
Initializes a new instance of the Game class.
public Game()
Properties
Bus
Gets the global message bus.
public MessageBus Bus { get; }
Property Value
DeltaTime
Gets the length of the last tick in seconds.
public float DeltaTime { get; }
Property Value
Systems
Gets the system manager.
public SystemManager Systems { get; }
Property Value
TargetTps
Gets or sets a value indicating how many ticks the game should aim to perform per second.
public int TargetTps { get; set; }
Property Value
World
Gets the world game object.
public GameObject World { get; }
Property Value
Methods
Run()
Run the game, blocking until it is stopped.
public void Run()
Stop()
Request this game to stop the game loop and clean up.
public void Stop()