System

System abstract class. System classes may derive from it and override prepare, run or unprepare.

Members

Functions

name
string name()

Name of system (given once at the registration by the system-manager).

prepare
void prepare(EntityManager entities, EventManager events, Duration dt)

Prepare any data for the frame before a proper run.

reorder
void reorder(Order order)

Change ordering of the system in the system-manager list.

run
void run(EntityManager entities, EventManager events, Duration dt)

Called by the system-manager anytime its method run is called.

stat
const(Stat) stat()

Reference on the system statistics.

unprepare
void unprepare(EntityManager entities, EventManager events, Duration dt)

Unprepare any data for the frame after the run.

Meta