|
OpenTTD Source 20260206-master-g4d4e37dbf1
|
Timer that represents real time for game-related purposes. More...
#include <timer_game_realtime.h>
Data Structures | |
| struct | TPeriod |
| struct | TStorage |
Public Types | |
| enum class | Trigger : uint8_t { Always , Unpaused , Autosave } |
| When is the timer supposed to be run. More... | |
| using | TElapsed = std::chrono::milliseconds |
Timer that represents real time for game-related purposes.
For pausing, there are several modes:
Definition at line 28 of file timer_game_realtime.h.
| using TimerGameRealtime::TElapsed = std::chrono::milliseconds |
Definition at line 54 of file timer_game_realtime.h.
|
strong |
When is the timer supposed to be run.
| Enumerator | |
|---|---|
| Always | Always run, even when paused. |
| Unpaused | Only run when not paused. |
| Autosave | Only run when not paused or there was a Command executed recently. |
Definition at line 31 of file timer_game_realtime.h.