Table of Contents

Class Game

Namespace
Termule.Engine.Core
Assembly
Termule.Engine.dll

Central environment that manages Components and Systems. Also controls the main game loop.

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

MessageBus

DeltaTime

Gets the length of the last tick in seconds.

public float DeltaTime { get; }

Property Value

float

Systems

Gets the system manager.

public SystemManager Systems { get; }

Property Value

SystemManager

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

int

World

Gets the world game object.

public GameObject World { get; }

Property Value

GameObject

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()