SystemManager

Entry point for systems. Allow to register systems.

Constructors

this
this(EntityManager entityManager, EventManager eventManager)
Undocumented in source.

Members

Functions

disableStat
deprecated void disableStat()

Disable statistics profiling on the system-manager and all its registered systems.

enableStat
deprecated void enableStat(Duration rate, void delegate() dg)

Enable statistics profiling on the system-manager and all its registered systems. A delegate dg can be given, the rate at which it will be called to provide significant stat's.

opSlice
auto opSlice()

Return a bidirectional range on the list of the registered systems.

prepare
void prepare(Duration dt)

Prepare all the registered systems.

register
void register(S system, Order order, Flag!"AutoSubscribe" flag)
void register(S system, Flag!"AutoSubscribe" flag)

Register a new system.

run
void run(Duration dt)

Run all the registered systems.

runFull
void runFull(Duration dt)

Prepare, run and unprepare all the registered systems.

statAll
const(Stat) statAll()

Reference on profiling statistics of all the system's prepare, unprepare and run.

statEnabled
bool statEnabled()

Tells whether statistics profiling is enabled or not.

statRate
auto statRate()
void statRate(Duration rate)

Set/get rate at which StatEvent events are sent.

statRun
const(Stat) statRun()

Reference on profiling statistics of all the system's run.

unprepare
void unprepare(Duration dt)

Unprepare all the registered systems.

unregister
void unregister(S system, Flag!"AutoSubscribe" flag)

Unregister a system.

Meta