diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-02-01 05:18:35 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-02-01 05:18:35 +0100 |
commit | 8403a4e71c1c3557646c9f0d019bc53e014134a0 (patch) | |
tree | cba4b422d46ab0012a7c920b74c26663baf01040 /src/World/Chunk.hpp | |
parent | 8a8a41a800dfe9bdcab934d6b53d9c6defd4a457 (diff) | |
download | MinedMap-8403a4e71c1c3557646c9f0d019bc53e014134a0.tar MinedMap-8403a4e71c1c3557646c9f0d019bc53e014134a0.zip |
Start analyzing the chunks
Diffstat (limited to 'src/World/Chunk.hpp')
-rw-r--r-- | src/World/Chunk.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/World/Chunk.hpp b/src/World/Chunk.hpp index 5b0ecdb..639d1a7 100644 --- a/src/World/Chunk.hpp +++ b/src/World/Chunk.hpp @@ -43,9 +43,14 @@ public: static const size_t SIZE = 16; private: + size_t len; UniqueCPtr<uint8_t[]> data; - static std::pair<UniqueCPtr<uint8_t[]>, size_t> inflateChunk(uint8_t *data, size_t len); + unsigned maxY; + + void inflateChunk(uint8_t *data, size_t len); + void parseChunk(); + void analyzeChunk(); std::shared_ptr<const NBT::ListTag<NBT::CompoundTag>> sections; |