diff options
author | HampusM <hampus@hampusmat.com> | 2022-05-23 19:08:02 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:59 +0200 |
commit | c9297a82291882e4043ae5e0de2e631940e96b52 (patch) | |
tree | 77caa40174ebef3b77ff81a404930d18e8ac46ef /src/game/generation_tracker.cpp | |
parent | 18e1db1fb8692752f64d3912c3b5ff1818be9028 (diff) |
feat: add incrementing generation
Diffstat (limited to 'src/game/generation_tracker.cpp')
-rw-r--r-- | src/game/generation_tracker.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/generation_tracker.cpp b/src/game/generation_tracker.cpp index 0a7a923..15b4ce4 100644 --- a/src/game/generation_tracker.cpp +++ b/src/game/generation_tracker.cpp @@ -7,6 +7,11 @@ auto GenerationTracker::get_current_generation() const noexcept -> uint32_t return _current_generation; } +void GenerationTracker::set_current_generation(uint32_t current_generation) noexcept +{ + _current_generation = current_generation; +} + auto GenerationTracker::get_is_paused() const noexcept -> bool { return _is_paused; |