diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-15 16:30:35 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-15 16:30:35 +0200 |
commit | 3d9a47f0f6dcb6e6e33bf2d2bd34fa903422ac62 (patch) | |
tree | c93706980d97f8ccea419e3aed8488903c0ed4bd /Museum.h | |
parent | 3f375a193d0f10a8121d568a745a7903c075c568 (diff) |
implement forward time jumps
Diffstat (limited to 'Museum.h')
-rw-r--r-- | Museum.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -21,13 +21,14 @@ public: void set_pause(bool paused); bool get_pause() { return this->paused; } void update(); + void time_jump(long offset); private: - unsigned long long tick = 0; bool paused = false; private: static constexpr std::chrono::milliseconds tick_interval = 15ms; + unsigned long jump = 0; bool working = true; std::thread * worker = nullptr; void work(); |