GameTimerClearSystem.ixx File
System that resets finished game timers each frame. More...
Included Headers
#include <helios.engine.common.tags.SystemRole>
#include <helios.engine.mechanics.timing.TimerManager>
#include <helios.engine.mechanics.timing.types>
#include <helios.engine.runtime.world.UpdateContext>
#include <helios.engine.mechanics.timing.GameTimer>
Namespaces Index
| namespace | helios |
| namespace | engine |
|
Main engine module aggregating core infrastructure and game systems. More... | |
| namespace | mechanics |
|
High-level gameplay systems and components for game logic. More... | |
| namespace | timing |
|
Game timer management system. More... | |
| namespace | systems |
|
Systems for the timing module. More... | |
Classes Index
| class | GameTimerClearSystem |
|
Resets finished game timers to an undefined state. More... | |
Description
System that resets finished game timers each frame.
File Listing
The file content with the documentation metadata removed is:
19using namespace helios::engine::mechanics::timing;
21using namespace helios::engine::mechanics::timing::types;
23export namespace helios::engine::mechanics::timing::systems {
37 class GameTimerClearSystem {
42 TimerManager& timerManager_;
54 explicit GameTimerClearSystem(TimerManager& timerManager)
62 void update(helios::engine::runtime::world::UpdateContext& updateContext) noexcept {
65 if (gameTimer.state() == TimerState::Finished || gameTimer.state() == TimerState::Cancelled) {
66 gameTimer.setState(TimerState::Undefined);
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.