Skip to main content

TimerBindingComponent.ixx File

Component that observes a specific game timer. More...

Included Headers

Namespaces Index

namespacehelios
namespaceengine
namespaceruntime
namespacetiming
namespacecomponents

Classes Index

classTimerBindingComponent<THandle>

Component that tracks the revision of a specific Timer. More...

Description

Component that observes a specific game timer.

File Listing

The file content with the documentation metadata removed is:

1
5module;
6
7export module helios.engine.runtime.timing.components.TimerBindingComponent;
8
9import helios.engine.runtime.timing.types;
10
11import helios.engine.runtime.timing.types.TimerId;
12import helios.engine.core.types;
13
16
18
29 template<typename THandle>
31
32 private:
33
37 TimerId timerId_;
38
42 TimerRevision timerRevision_;
43
44
45 public:
46
47
49
56 timerId_(other.timerId_) {}
57
61
67 void setTimerId(const helios::engine::runtime::timing::types::TimerId timerId) noexcept {
68 timerId_ = timerId;
69 }
70
77 return timerId_;
78 }
79
89 if (timerRevision_ == timerRevision) {
90 return;
91 }
92 timerRevision_ = timerRevision;
93 }
94
101 return timerRevision_;
102 }
103
104 };
105
106
107}

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.