Abstract
Abstract class which can be used to create Systems. It includes the following dependencies: EntityManager, AssetManager, SceneManager, TimeManager, InputManager, CollisionRepository.
class SomeSystem extends GameSystem { onUpdate() { const result = this.entityManager.search(SomeComponent); }} Copy
class SomeSystem extends GameSystem { onUpdate() { const result = this.entityManager.search(SomeComponent); }}
Protected
Readonly
This method is called the first time the system is enabled
This method is called when the system is destroyed
This method is called when the system is disabled
This method is called when the system is enabled
This method is called once every frame
Abstract class which can be used to create Systems.
It includes the following dependencies: EntityManager, AssetManager, SceneManager, TimeManager, InputManager, CollisionRepository.
Example