SystemManager
Index
Constructors
Properties
Methods
Constructors
constructor
Parameters
_world: World
Returns SystemManager
Properties
publicinitialized
publicsystems
List of systems, to add a new system call SystemManager.addSystem
Methods
publicaddSystem
Adds a system to the manager, it will now be updated every frame
Parameters
systemOrCtor: System | SystemCtor<System>
Returns void
publicclear
Returns void
publicget
Get a system registered in the manager by type
Type parameters
- T: System
Parameters
systemType: SystemCtor<T>
Returns T
publicinitialize
Initialize all systems in the manager
Systems added after initialize() will be initialized on add
Returns void
publicremoveSystem
Removes a system from the manager, it will no longer be updated
Parameters
system: System
Returns void
publicupdateSystems
Updates all systems
Parameters
type: SystemType
whether this is an update or draw system
scene: Scene<unknown>
context reference
elapsedMs: number
time in milliseconds
Returns void
The SystemManager is responsible for keeping track of all systems in a scene. Systems are scene specific