1
0

Implement anvil chunk sparsing

This commit is contained in:
peterbell10
2017-08-20 23:23:23 +01:00
committed by Lukas Pioch
parent 3ebcf0fd5c
commit 447d929da1
5 changed files with 160 additions and 26 deletions

View File

@@ -1,4 +1,4 @@
// NBTChunkSerializer.h
// Declares the cNBTChunkSerializer class that is used for saving individual chunks into NBT format used by Anvil
@@ -55,7 +55,7 @@ class cPainting;
class cNBTChunkSerializer :
public cChunkDataSeparateCollector
public cChunkDataCopyCollector
{
public:
cChunkDef::BiomeMap m_Biomes;
@@ -69,15 +69,12 @@ public:
/** Close NBT tags that we've opened */
void Finish(void);
bool IsLightValid(void) const {return m_IsLightValid; }
bool IsLightValid(void) const { return m_IsLightValid; }
protected:
/* From cChunkDataSeparateCollector we inherit:
- m_BlockTypes[]
- m_BlockMetas[]
- m_BlockLight[]
- m_BlockSkyLight[] */
/* From cChunkDataCopyCollector we inherit:
- cChunkData m_Data */
cFastNBTWriter & m_Writer;