diff options
Diffstat (limited to 'src/World/ChunkDimensions.hpp')
| -rw-r--r-- | src/World/ChunkDimensions.hpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/World/ChunkDimensions.hpp b/src/World/ChunkDimensions.hpp new file mode 100644 index 0000000..99f2824 --- /dev/null +++ b/src/World/ChunkDimensions.hpp @@ -0,0 +1,14 @@ +#pragma once + +#include "../Common/Sizes.hpp" + +// This file defines chunk dimensions outside of the `Chunk` class. +// We need this to avoid cyclic dependencies for headers on which Chunk depends, +// but which need the dimensions, too (i.e. `ChunkIndex`). +// `Chunk` re-exports these so other units may use `Chunk::Width` and `Chunk::Height` as before. +namespace MC::World::ChunkDimensions { + +static constexpr U32 Width = 16; +static constexpr U32 Height = 128; + +} \ No newline at end of file |
