blob: 0e59751f8cf6e61cb88b2e5a6039ad0b4bc5d6a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#pragma once
#include "interfaces/generation_tracker.hpp"
#include <cstdint>
class GenerationTracker : public IGenerationTracker
{
public:
explicit GenerationTracker(bool is_paused) noexcept;
[[nodiscard]] uint32_t get_current_generation() const noexcept override;
[[nodiscard]] bool get_is_paused() const noexcept override;
void set_is_paused(bool is_paused) noexcept override;
private:
uint32_t _current_generation = 0U;
bool _is_paused;
};
|