blob: 135af005e9e1ed5dd16544eb41153a613eade83e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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);
|