Class GameSystemAbstract

Abstract base class for creating game systems with commonly needed dependencies injected.
Provides access to the following core managers and services:\

  • EntityManager: For managing game entities and components\
  • AssetManager: For loading and managing game resources\
  • SceneManager: For controlling scene transitions and state\
  • TimeManager: For handling game timing and delta time\
  • InputManager: For processing keyboard, mouse and touch input\
  • CollisionRepository: For physics and collision detection\
  • GameConfig: For accessing game configuration settings
class SomeSystem extends GameSystem {
onUpdate() {
const result = this.entityManager.search(SomeComponent);
}
}

Implements

Constructors

Properties

assetManager: AssetManager
collisionRepository: CollisionRepository
entityManager: EntityManager
gameConfig: GameConfig
inputManager: InputManager
sceneManager: SceneManager
timeManager: TimeManager

Methods