This interface defines the core structure for system classes in the ECS architecture.
Systems contain the game logic that operates on entities and their components.
Dependencies like EntityManager can be injected using dependency injection decorators.
Systems must implement onUpdate() and can optionally implement lifecycle hooks like onCreate(), onDestroy(), onEnabled() and onDisabled().
This interface defines the core structure for system classes in the ECS architecture.
Systems contain the game logic that operates on entities and their components.
Dependencies like EntityManager can be injected using dependency injection decorators.
Systems must implement onUpdate() and can optionally implement lifecycle hooks like onCreate(), onDestroy(), onEnabled() and onDisabled().
Example