aboutsummaryrefslogtreecommitdiff
path: root/src/game/generation_tracker.hpp
blob: bd15a3e98dfa4d95d77c9a559a0fa4b057ed6470 (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]] auto get_current_generation() const noexcept -> uint32_t override;

	[[nodiscard]] auto get_is_paused() const noexcept -> bool override;

	void set_is_paused(bool is_paused) noexcept override;

private:
	uint32_t _current_generation = 0U;

	bool _is_paused;
};