|
Crimson Engine 1.0.0
A high-performance C++20 game engine prototype showcasing a custom ECS, Vulkan renderer, and ImGui editor.
|
Base class for ECS systems that process sets of entities. More...
#include <System.hpp>
Public Member Functions | |
| virtual | ~System ()=default |
| Virtual destructor. | |
| virtual void | update (float dt)=0 |
| Pure virtual update function to implement system behaviors. | |
| void | addEntity (Entity e) |
| Adds an entity to the system tracking list. | |
| void | removeEntity (Entity e) |
| Removes an entity from system tracking. | |
Protected Attributes | |
| std::vector< Entity > | entities |
| List of entities tracked by this system. | |
Base class for ECS systems that process sets of entities.
|
virtualdefault |
Virtual destructor.
|
inline |
Adds an entity to the system tracking list.
| e | Entity to track. |
|
inline |
Removes an entity from system tracking.
| e | Entity to remove. |
|
pure virtual |
Pure virtual update function to implement system behaviors.
| dt | Delta time in seconds. |
Implemented in AnimationSystem, CameraSystem, Engine::AudioSystem, Engine::PhysicsSystem, Engine::SpriteSystem, Engine::TilemapSystem, Engine::UISystem, InputSystem, PlayerControllerSystem, and RenderSystem.
|
protected |
List of entities tracked by this system.