diff options
| author | Mel <einebeere@gmail.com> | 2023-07-08 03:25:44 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2023-07-08 03:25:44 +0200 |
| commit | fe2baedc760c2f29e2c720f6b1132a2de33c5430 (patch) | |
| tree | dfbe1c72a17805a3cab6e0d47433e9021890c9ca /src/World/BiomeType.hpp | |
| parent | 41fbca10f6c6cdd9c1623f1347e7ecb40f5e7f59 (diff) | |
| download | meowcraft-fe2baedc760c2f29e2c720f6b1132a2de33c5430.tar.zst meowcraft-fe2baedc760c2f29e2c720f6b1132a2de33c5430.zip | |
Use own size types
Diffstat (limited to 'src/World/BiomeType.hpp')
| -rw-r--r-- | src/World/BiomeType.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/World/BiomeType.hpp b/src/World/BiomeType.hpp index 40583d9..2380b60 100644 --- a/src/World/BiomeType.hpp +++ b/src/World/BiomeType.hpp @@ -1,6 +1,6 @@ #pragma once -#include <cstdint> +#include "../Common/Sizes.hpp" #include <vector> #include <string> @@ -8,7 +8,7 @@ namespace MC::World { class BiomeType { public: - enum Value : uint8_t { + enum Value : U8 { Plains, Forest, Alpine, @@ -21,7 +21,7 @@ public: Ocean, }; - static constexpr uint8_t Size = Ocean + 1; + static constexpr U8 Size = Ocean + 1; BiomeType() : m_biome(Plains) {} BiomeType(const Value biome) : m_biome(biome) {} |
