aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/generation_tracker.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/generation_tracker.hpp')
-rw-r--r--src/interfaces/generation_tracker.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/interfaces/generation_tracker.hpp b/src/interfaces/generation_tracker.hpp
new file mode 100644
index 0000000..135af00
--- /dev/null
+++ b/src/interfaces/generation_tracker.hpp
@@ -0,0 +1,18 @@
+#pragma once
+
+#include <cstdint>
+#include <memory>
+
+class IGenerationTracker
+{
+public:
+ virtual ~IGenerationTracker() noexcept = default;
+
+ [[nodiscard]] virtual uint32_t get_current_generation() const noexcept = 0;
+
+ [[nodiscard]] virtual bool get_is_paused() const noexcept = 0;
+
+ virtual void set_is_paused(bool is_paused) noexcept = 0;
+};
+
+using IGenerationTrackerFactory = std::shared_ptr<IGenerationTracker> (*)(bool is_paused);