|
OpenTTD Source 20251104-master-g3befbdd52f
|
Timer that represents real time for game-related purposes. More...
#include <timer_game_realtime.h>
Data Structures | |
| struct | TPeriod |
| struct | TStorage |
Public Types | |
| enum | PeriodFlags : uint8_t { ALWAYS , UNPAUSED , AUTOSAVE } |
| 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 53 of file timer_game_realtime.h.
| enum TimerGameRealtime::PeriodFlags : uint8_t |
| 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 30 of file timer_game_realtime.h.