Table of Contents

Class SystemManager

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

Manages systems and provides an interface to install, uninstall, and retrieve systems during Game configuration.

public sealed class SystemManager : GameElement
Inheritance
SystemManager
Inherited Members

Methods

Get<TSystem>()

Gets the installed system of type TSystem, or null if none is installed.

public TSystem Get<TSystem>() where TSystem : System

Returns

TSystem

The installed system or null.

Type Parameters

TSystem

The type of system to retrieve.

Install(params System[])

Installs the provided systems, replacing the existing instance of that system base class (if any).

public void Install(params System[] systems)

Parameters

systems System[]

The systems to install.

Exceptions

InvalidOperationException

Thrown when trying to install systems when the Game is already started.

InstallDefaults()

Installs the operating-system-specific default Termule.Engine.Systemss.

public void InstallDefaults()

Uninstall<TSystem>()

Uninstalls the system of type TSystem (if any).

public void Uninstall<TSystem>() where TSystem : System

Type Parameters

TSystem

The type of system to uninstall.

Exceptions

InvalidOperationException

Thrown when trying to uninstall systems when the Game is already started.