EntityManager.registerSystem

Register new System into EntityManager. This funcion generate glue between EntityManager and System. Systems can be registered from external dynamic library, and can be registered after adding entities too. System mustn't be registered before components which system want to use, in this case functions call assertion.

  1. void registerSystem(int priority, const(char)[] pass_name)
  2. void registerSystem(int priority, ushort pass)
    struct EntityManager
    void
    registerSystem
    (
    Sys
    )
    (,
    ushort pass = 0
    )

Parameters

priority int

system priority. Priority determines order of execution of systems updates

pass ushort

index of UpdatePass which sholud call system update

Meta