blob: 026b3ef04a3044ce1db005257dc043a9ed1e3491 (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#pragma once
#include <cstdint>
#include <vector>
namespace MC::World {
class BiomeType {
public:
enum Value : uint8_t {
Forest,
Plains,
Desert,
Ocean,
};
static constexpr const size_t Size = 4;
BiomeType() = default;
BiomeType(Value biome) : m_biome(biome) {}
operator Value() const { return m_biome; }
static std::vector<BiomeType> all() {
return {
Plains, Forest, Desert, Ocean
};
}
static std::vector<BiomeType> all_ground() {
return {
Plains, Forest, Desert
};
}
private:
Value m_biome;
};
}
|