aboutsummaryrefslogtreecommitdiff
path: root/src/game/generation_tracker.hpp
blob: 1a83d715184e0dd37d81cc87f4cc1a2d48261192 (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 -> uint32_t override;

	void set_current_generation(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:
	uint32_t _current_generation = 0U;

	bool _is_paused;
};