aboutsummaryrefslogtreecommitdiff
path: root/src/game/generation_tracker.hpp
blob: 7c672805bf11b3c829a43d276209d6f701185808 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#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 -> std::uint32_t override;

	void set_current_generation(std::uint32_t current_generation) noexcept override;

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

	void set_is_paused(bool is_paused) noexcept override;

private:
	std::uint32_t _current_generation = 0U;

	bool _is_paused;
};