Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
Loading...
Searching...
No Matches
SystemManager.cpp
Go to the documentation of this file.
1
9#include "RType/Logger.hpp"
10
11namespace rtp::ecs
12{
14 // Public API
16
18 : _registry(registry)
19 {
20 }
21
22 void SystemManager::update(float dt)
23 {
24 for (auto &[type, system] : this->_systems)
25 system->update(dt);
26 }
27
28}
Logger declaration with support for multiple log levels.
Manager for ECS systems.
SystemManager(Registry &registry)
std::unordered_map< std::type_index, std::unique_ptr< ISystem > > _systems
Registered systems.
File : RenderSystem.hpp License: MIT Author : Elias Josué HAJJAR LLAUQUEN elias-josue....