The SystemManager is responsible for managing the lifecycle and execution of game systems.
It provides methods for adding, enabling, disabling and retrieving systems that operate on entities and components.
Systems are organized into groups to control their execution order and update frequency.
Acts as the central orchestrator for all game logic and behavior processing.

Constructors

Methods

  • Disables a system by its type.
    The method onDisabled of the system will be called.

    Parameters

    Returns void

    systemManager.disableSystem(PlayerSystem);
    
  • Enables a system by its type.
    The method onEnabled of the system will be called. If the system is enabled for the first time, the method onCreate will also be called.

    Parameters

    Returns void

    systemManager.enableSystem(PlayerSystem);
    
  • Returns TRUE if it has a system of the given type, otherwise it returns FALSE

    Parameters

    Returns boolean

    boolean

    const hasPlayerSystem = systemManager.hasSystem(PlayerSystem);