Implement protocol level chunk sparsing (#3864)
This commit is contained in:
committed by
Alexander Harkness
parent
ad3192d696
commit
096cdac80d
@@ -5,6 +5,7 @@
|
||||
// - serialize chunk data to different protocol versions
|
||||
// - cache such serialized data for multiple clients
|
||||
|
||||
#include "ChunkData.h"
|
||||
|
||||
|
||||
|
||||
@@ -12,10 +13,7 @@
|
||||
class cChunkDataSerializer
|
||||
{
|
||||
protected:
|
||||
const cChunkDef::BlockTypes & m_BlockTypes;
|
||||
const cChunkDef::BlockNibbles & m_BlockMetas;
|
||||
const cChunkDef::BlockNibbles & m_BlockLight;
|
||||
const cChunkDef::BlockNibbles & m_BlockSkyLight;
|
||||
const cChunkData & m_Data;
|
||||
const unsigned char * m_BiomeData;
|
||||
const eDimension m_Dimension;
|
||||
|
||||
@@ -36,12 +34,9 @@ public:
|
||||
} ;
|
||||
|
||||
cChunkDataSerializer(
|
||||
const cChunkDef::BlockTypes & a_BlockTypes,
|
||||
const cChunkDef::BlockNibbles & a_BlockMetas,
|
||||
const cChunkDef::BlockNibbles & a_BlockLight,
|
||||
const cChunkDef::BlockNibbles & a_BlockSkyLight,
|
||||
const unsigned char * a_BiomeData,
|
||||
const eDimension a_Dimension
|
||||
const cChunkData & a_Data,
|
||||
const unsigned char * a_BiomeData,
|
||||
const eDimension a_Dimension
|
||||
);
|
||||
|
||||
const AString & Serialize(int a_Version, int a_ChunkX, int a_ChunkZ); // Returns one of the internal m_Serializations[]
|
||||
|
||||
Reference in New Issue
Block a user