aboutsummaryrefslogtreecommitdiff
path: root/src/game/generation_tracker.cpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-23 19:41:31 +0100
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:57 +0200
commit486ca3846b46dc229e5807968578809766ec1991 (patch)
tree65a4b7a746d6305666af06f8a1975c76244085a7 /src/game/generation_tracker.cpp
parentb8e86ce397dc07320c02f6a5f592c7c6a4421c86 (diff)
feat: implement generations & multithreading
Diffstat (limited to 'src/game/generation_tracker.cpp')
-rw-r--r--src/game/generation_tracker.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/game/generation_tracker.cpp b/src/game/generation_tracker.cpp
new file mode 100644
index 0000000..0e137cb
--- /dev/null
+++ b/src/game/generation_tracker.cpp
@@ -0,0 +1,18 @@
+#include "generation_tracker.hpp"
+
+GenerationTracker::GenerationTracker(bool is_paused) noexcept : _is_paused(is_paused) {}
+
+uint32_t GenerationTracker::get_current_generation() const noexcept
+{
+ return _current_generation;
+}
+
+bool GenerationTracker::get_is_paused() const noexcept
+{
+ return _is_paused;
+}
+
+void GenerationTracker::set_is_paused(bool is_paused) noexcept
+{
+ _is_paused = is_paused;
+}