Engine
Raylib based game framework
Loading...
Searching...
No Matches
System Class Referenceabstract

Base class for all systems. More...

#include <SystemManager.hpp>

Inheritance diagram for System:
Collaboration diagram for System:

Public Member Functions

virtual void Update (const float deltaT)=0
 Updates the system.
virtual void Draw () const
 Renders the system.

Detailed Description

Base class for all systems.

All systems must derive from this class and implement Update.

Member Function Documentation

◆ Draw()

void System::Draw ( ) const
virtual

Renders the system.

Called once per frame after all Update steps, in priority order. Called before scenes. Default implementation does nothing.

Reimplemented in ParticleSystem.

◆ Update()

virtual void System::Update ( const float deltaT)
pure virtual

Updates the system.

Called once per fixed-timestep step before rendering, in priority order. Called before scenes.

Parameters
deltaTDuration of the previous frame in seconds

Implemented in AnimationSystem, AudioSystem, InputSystem, and ParticleSystem.


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