Skip to content

Class Engine::System

ClassList > Engine > System

Base class for all systems in the engine. More...

  • #include <System.hpp>

Inherited by the following classes: Engine::AudioSystem, Engine::CameraSystem, Engine::CollisionSystem, Engine::HierarchySystem, Engine::LayeredRenderSystem, Engine::Multiplayer::ReplicationSystem, Engine::MultiplayerSystem, Engine::PositionSystem, Engine::ScriptSystem, Engine::StatesSystem, Engine::SystemExample, Engine::WaveSpawnerSystem

Public Attributes

Type Name
std::set< Entity > m_Entities

Public Functions

Type Name
virtual void OnSceneUnloaded (Registry & registry)
Called right before the current scene's entities are destroyed.
virtual void Render (Registry & registry)
World pass: drawn inside the active camera.
virtual void RenderScreen (Registry & registry)
Screen pass: drawn after the world, in window pixels.
virtual void Update (Registry & registry, float dt)
virtual ~System () = default

Detailed Description

Note:

Systems exist globally and automatically process any entity that possesses the data (Components) required by that system.

Public Attributes Documentation

variable m_Entities

std::set<Entity> Engine::System::m_Entities;

Public Functions Documentation

function OnSceneUnloaded

Called right before the current scene's entities are destroyed.

inline virtual void Engine::System::OnSceneUnloaded (
    Registry & registry
) 

Override it to drop state kept outside components (script instances, playing sounds, cached pairs...). Entities are still alive during this call; after it, entity IDs restart at 1.


function Render

World pass: drawn inside the active camera.

inline virtual void Engine::System::Render (
    Registry & registry
) 


function RenderScreen

Screen pass: drawn after the world, in window pixels.

inline virtual void Engine::System::RenderScreen (
    Registry & registry
) 


function Update

inline virtual void Engine::System::Update (
    Registry & registry,
    float dt
) 

function ~System

virtual Engine::System::~System () = default


The documentation for this class was generated from the following file /home/runner/work/r-type/r-type/Engine/include/ECS/System.hpp