GameTimerBindingComponent Class
Component that tracks the revision of a specific GameTimer. More...
Declaration
Public Constructors Index
| GameTimerBindingComponent ()=default | |
| GameTimerBindingComponent (const GameTimerBindingComponent &other) | |
|
Copy constructor. More... | |
| GameTimerBindingComponent (GameTimerBindingComponent &&) noexcept=default | |
Public Operators Index
| GameTimerBindingComponent & | operator= (const GameTimerBindingComponent &)=default |
| GameTimerBindingComponent & | operator= (GameTimerBindingComponent &&) noexcept=default |
Public Member Functions Index
| void | setGameTimerId (const helios::engine::core::data::GameTimerId gameTimerId) noexcept |
|
Sets the id of the game timer to observe. More... | |
| helios::engine::core::data::GameTimerId | gameTimerId () const noexcept |
|
Returns the observed game timer id. More... | |
| void | setTimerRevision (const TimerRevision timerRevision) noexcept |
|
Sets the last known timer revision. More... | |
| TimerRevision | timerRevision () const noexcept |
|
Returns the last known timer revision. More... | |
Private Member Attributes Index
| GameTimerId | gameTimerId_ |
|
The id of the observed game timer. More... | |
| TimerRevision | timerRevision_ |
|
Last known revision of the observed timer. More... | |
Description
Component that tracks the revision of a specific GameTimer.
Entities with this component observe a GameTimer identified by its GameTimerId. The stored revision can be compared against the timer's current revision to detect updates.
- See Also
- See Also
GameTimerUpdateSystem
Definition at line 30 of file GameTimerBindingComponent.ixx.
Public Constructors
GameTimerBindingComponent()
| default |
Definition at line 48 of file GameTimerBindingComponent.ixx.
Referenced by GameTimerBindingComponent, GameTimerBindingComponent, operator= and operator=.
GameTimerBindingComponent()
| inline |
Copy constructor.
- Parameters
-
other The component to copy from.
Definition at line 55 of file GameTimerBindingComponent.ixx.
Reference GameTimerBindingComponent.
GameTimerBindingComponent()
| noexcept default |
Definition at line 59 of file GameTimerBindingComponent.ixx.
Reference GameTimerBindingComponent.
Public Operators
operator=()
| default |
Definition at line 58 of file GameTimerBindingComponent.ixx.
Reference GameTimerBindingComponent.
operator=()
| noexcept default |
Definition at line 60 of file GameTimerBindingComponent.ixx.
Reference GameTimerBindingComponent.
Public Member Functions
gameTimerId()
| inline nodiscard noexcept |
Returns the observed game timer id.
- Returns
The GameTimerId.
Definition at line 76 of file GameTimerBindingComponent.ixx.
Referenced by setGameTimerId.
setGameTimerId()
| inline noexcept |
Sets the id of the game timer to observe.
- Parameters
-
gameTimerId The timer id.
Definition at line 67 of file GameTimerBindingComponent.ixx.
References gameTimerId and setGameTimerId.
Referenced by setGameTimerId.
setTimerRevision()
| inline noexcept |
Sets the last known timer revision.
If the new revision differs from the stored one, the update flag is set so that consuming systems can detect the change.
- Parameters
-
timerRevision The revision value.
Definition at line 88 of file GameTimerBindingComponent.ixx.
Reference timerRevision.
timerRevision()
| inline nodiscard noexcept |
Returns the last known timer revision.
- Returns
The stored TimerRevision.
Definition at line 100 of file GameTimerBindingComponent.ixx.
Referenced by setTimerRevision.
Private Member Attributes
gameTimerId_
|
The id of the observed game timer.
Definition at line 37 of file GameTimerBindingComponent.ixx.
timerRevision_
|
Last known revision of the observed timer.
Definition at line 42 of file GameTimerBindingComponent.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.