The SystemManager manages the systems.
It provides the necessary methods for reading and writing systems.

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);