diff options
Diffstat (limited to 'src/World/Chunk.hpp')
-rw-r--r-- | src/World/Chunk.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/World/Chunk.hpp b/src/World/Chunk.hpp index a4948b7..d05328c 100644 --- a/src/World/Chunk.hpp +++ b/src/World/Chunk.hpp @@ -67,6 +67,7 @@ private: std::unique_ptr<uint8_t[]> blockData; std::unique_ptr<uint8_t[]> blockSkyLight; std::unique_ptr<uint8_t[]> blockBlockLight; + const uint8_t *biomes; size_t getIndex(size_t x, size_t y, size_t z) const { @@ -101,6 +102,10 @@ private: return getHalf(blockSkyLight.get(), x, y, z); } + uint8_t getBiomeAt(size_t x, size_t z) const { + return biomes[z*SIZE + x]; + } + void inflateChunk(Buffer buffer); void parseChunk(); |