GameTimerBindingComponent.ixx File
Component that observes a specific game timer. More...
Included Headers
#include <helios.core.types>
#include <helios.engine.mechanics.timing.types.GameTimerId>
#include <helios.engine.mechanics.timing.types>
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 | components |
|
ECS components for the timing module. More... | |
Classes Index
| class | GameTimerBindingComponent |
|
Component that tracks the revision of a specific GameTimer. More... | |
Description
Component that observes a specific game timer.
File Listing
The file content with the documentation metadata removed is:
14using namespace helios::engine::mechanics::timing::types;
15using namespace helios::engine::mechanics::timing::types;
17export namespace helios::engine::mechanics::timing::components {
29 class GameTimerBindingComponent {
36 GameTimerId gameTimerId_;
41 TimerRevision timerRevision_;
47 GameTimerBindingComponent() = default;
54 GameTimerBindingComponent(const GameTimerBindingComponent& other) :
57 GameTimerBindingComponent& operator=(const GameTimerBindingComponent&) = default;
58 GameTimerBindingComponent(GameTimerBindingComponent&&) noexcept = default;
59 GameTimerBindingComponent& operator=(GameTimerBindingComponent&&) noexcept = default;
66 void setGameTimerId(const helios::engine::mechanics::timing::types::GameTimerId gameTimerId) noexcept {
67 gameTimerId_ = gameTimerId;
75 [[nodiscard]] helios::engine::mechanics::timing::types::GameTimerId gameTimerId() const noexcept {
87 void setTimerRevision(const TimerRevision timerRevision) noexcept {
88 if (timerRevision_ == timerRevision) {
91 timerRevision_ = timerRevision;
99 [[nodiscard]] TimerRevision timerRevision() const noexcept {
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.