Engine.addSystem

Add a system to the engine, and set its priority for the order in which the systems are updated by the engine update loop.

The priority dictates the order in which the systems are updated by the engine update loop. Lower numbers for priority are updated first. i.e. a priority of 1 is updated before a priority of 2.

  1. void addSystem(T system_a, int priority_a)
    class Engine
    void
    addSystem
    (
    T
    )
    (
    ref T system_a
    ,)
  2. void addSystem(System system_a, ClassInfo class_a, int priority_a)

Parameters

system_a T

The system to add to the engine.

priority_a int

priority The priority for updating the systems during the engine loop. A lower number means the system is updated sooner.

Meta