GameTimerUpdateSystem Class
Updates all game timers managed by the TimerManager. More...
Declaration
Public Member Typedefs Index
| using | EngineRoleTag = helios::engine::common::tags::SystemRole |
Public Constructors Index
| GameTimerUpdateSystem (TimerManager &timerManager) | |
|
Constructs the system with a reference to the TimerManager. More... | |
Public Member Functions Index
| void | update (helios::engine::runtime::world::UpdateContext &updateContext) noexcept |
|
Advances all game timers by the current delta time. More... | |
Private Member Attributes Index
| TimerManager & | timerManager_ |
|
Reference to the TimerManager owning the timers. More... | |
Description
Updates all game timers managed by the TimerManager.
Each frame, this system iterates over all registered timers and advances their elapsed time by the current delta time.
- See Also
- See Also
Definition at line 39 of file GameTimerUpdateSystem.ixx.
Public Member Typedefs
EngineRoleTag
|
Definition at line 49 of file GameTimerUpdateSystem.ixx.
Public Constructors
GameTimerUpdateSystem()
| inline explicit |
Constructs the system with a reference to the TimerManager.
- Parameters
-
timerManager The manager whose timers are updated.
Definition at line 57 of file GameTimerUpdateSystem.ixx.
Public Member Functions
update()
| inline noexcept |
Advances all game timers by the current delta time.
- Parameters
-
updateContext The current frame's update context.
Definition at line 65 of file GameTimerUpdateSystem.ixx.
References helios::engine::mechanics::timing::types::Finished and helios::engine::mechanics::timing::types::Running.
Private Member Attributes
timerManager_
|
Reference to the TimerManager owning the timers.
Definition at line 44 of file GameTimerUpdateSystem.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.