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
System Class Referenceabstract

Base class for ECS systems that process sets of entities. More...

#include <System.hpp>

Inheritance diagram for System:
AnimationSystem CameraSystem Engine::AudioSystem Engine::PhysicsSystem Engine::SpriteSystem Engine::TilemapSystem Engine::UISystem InputSystem PlayerControllerSystem RenderSystem

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.

Detailed Description

Base class for ECS systems that process sets of entities.

Constructor & Destructor Documentation

◆ ~System()

virtual System::~System ( )
virtualdefault

Virtual destructor.

Member Function Documentation

◆ addEntity()

void System::addEntity ( Entity e)
inline

Adds an entity to the system tracking list.

Parameters
eEntity to track.

◆ removeEntity()

void System::removeEntity ( Entity e)
inline

Removes an entity from system tracking.

Parameters
eEntity to remove.

◆ update()

virtual void System::update ( float dt)
pure virtual

Pure virtual update function to implement system behaviors.

Parameters
dtDelta time in seconds.

Implemented in AnimationSystem, CameraSystem, Engine::AudioSystem, Engine::PhysicsSystem, Engine::SpriteSystem, Engine::TilemapSystem, Engine::UISystem, InputSystem, PlayerControllerSystem, and RenderSystem.

Member Data Documentation

◆ entities

std::vector<Entity> System::entities
protected

List of entities tracked by this system.


The documentation for this class was generated from the following file: