Manages registration and sequential updating of active ECS systems.
More...
#include <SystemManager.hpp>
|
| void | addSystem (std::shared_ptr< System > system) |
| | Registers a new system with the manager.
|
| void | updateAll (float dt) |
| | Triggers the update routine on all registered systems.
|
| void | clear () |
| | Removes and releases all registered systems. Call this before destroying Vulkan resources to ensure systems (which may own GPU pipelines or descriptors) are shut down first.
|
|
| std::vector< std::shared_ptr< System > > | systems |
| | Collection of registered systems.
|
Manages registration and sequential updating of active ECS systems.
◆ addSystem()
| void SystemManager::addSystem |
( |
std::shared_ptr< System > | system | ) |
|
|
inline |
Registers a new system with the manager.
- Parameters
-
| system | Shared pointer to the system to add. |
◆ clear()
| void SystemManager::clear |
( |
| ) |
|
|
inline |
Removes and releases all registered systems. Call this before destroying Vulkan resources to ensure systems (which may own GPU pipelines or descriptors) are shut down first.
◆ updateAll()
| void SystemManager::updateAll |
( |
float | dt | ) |
|
|
inline |
Triggers the update routine on all registered systems.
- Parameters
-
◆ systems
| std::vector<std::shared_ptr<System> > SystemManager::systems |
|
private |
Collection of registered systems.
The documentation for this class was generated from the following file: