TimerUpdateSystem Class Template
Updates all game timers managed by the TimerManager. More...
Declaration
Public Member Typedefs Index
template <typename TCommandBuffer = NullCommandBuffer> | |
| using | EngineRoleTag = helios::engine::runtime::world::tags::SystemRole |
template <typename TCommandBuffer = NullCommandBuffer> | |
| using | CommandBuffer_type = TCommandBuffer |
Public Constructors Index
template <typename TCommandBuffer = NullCommandBuffer> | |
| TimerUpdateSystem (TimerManager &timerManager) | |
|
Constructs the system with a reference to the TimerManager. More... | |
Public Member Functions Index
template <typename TCommandBuffer = NullCommandBuffer> | |
| void | update (helios::engine::runtime::world::UpdateContext &updateContext, TCommandBuffer &cmdBuffer) noexcept |
|
Advances all game timers by the current delta time. More... | |
Private Member Attributes Index
template <typename TCommandBuffer = NullCommandBuffer> | |
| 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 45 of file TimerUpdateSystem.ixx.
Public Member Typedefs
CommandBuffer_type
|
Definition at line 56 of file TimerUpdateSystem.ixx.
EngineRoleTag
|
Definition at line 55 of file TimerUpdateSystem.ixx.
Public Constructors
TimerUpdateSystem()
| inline explicit |
Constructs the system with a reference to the TimerManager.
- Parameters
-
timerManager The manager whose timers are updated.
Definition at line 64 of file TimerUpdateSystem.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 72 of file TimerUpdateSystem.ixx.
References helios::engine::runtime::registerComponents, helios::engine::runtime::timing::types::TimerControlContext::timerId and helios::engine::runtime::timing::TimerManager::timers.
Private Member Attributes
timerManager_
|
Reference to the TimerManager owning the timers.
Definition at line 50 of file TimerUpdateSystem.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.