From 2eef7cf49b7a15559ee7bb6719411bcf67386213 Mon Sep 17 00:00:00 2001 From: Mel Date: Sat, 22 Jul 2023 17:35:00 +0200 Subject: Propagation in lighting system --- src/World/ChunkDimensions.hpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/World/ChunkDimensions.hpp (limited to 'src/World/ChunkDimensions.hpp') 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 -- cgit 1.4.1