Crimson Engine 1.0.0
A high-performance C++20 game engine prototype showcasing a custom ECS, Vulkan renderer, and ImGui editor.
Loading...
Searching...
No Matches
SystemManager Class Reference

Manages registration and sequential updating of active ECS systems. More...

#include <SystemManager.hpp>

Public Member Functions

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.

Private Attributes

std::vector< std::shared_ptr< System > > systems
 Collection of registered systems.

Detailed Description

Manages registration and sequential updating of active ECS systems.

Member Function Documentation

◆ addSystem()

void SystemManager::addSystem ( std::shared_ptr< System > system)
inline

Registers a new system with the manager.

Parameters
systemShared 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
dtDelta time in seconds.

Member Data Documentation

◆ 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: