Class 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¶
Public Functions Documentation¶
function OnSceneUnloaded¶
Called right before the current scene's entities are destroyed.
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.
function RenderScreen¶
Screen pass: drawn after the world, in window pixels.
function Update¶
function ~System¶
The documentation for this class was generated from the following file /home/runner/work/r-type/r-type/Engine/include/ECS/System.hpp