summaryrefslogtreecommitdiffstats
path: root/src/Protocol/ChunkDataSerializer.h
diff options
context:
space:
mode:
authorpeterbell10 <peterbell10@live.co.uk>2017-08-21 18:56:53 +0200
committerAlexander Harkness <me@bearbin.net>2017-08-21 18:56:53 +0200
commit096cdac80d222ac0be2a0554a759a0b16c1c34f6 (patch)
tree03190afb388f999bf9740fbae15d688780f036d5 /src/Protocol/ChunkDataSerializer.h
parentAward player an achievement when creating a beacon (#3930) (diff)
downloadcuberite-096cdac80d222ac0be2a0554a759a0b16c1c34f6.tar
cuberite-096cdac80d222ac0be2a0554a759a0b16c1c34f6.tar.gz
cuberite-096cdac80d222ac0be2a0554a759a0b16c1c34f6.tar.bz2
cuberite-096cdac80d222ac0be2a0554a759a0b16c1c34f6.tar.lz
cuberite-096cdac80d222ac0be2a0554a759a0b16c1c34f6.tar.xz
cuberite-096cdac80d222ac0be2a0554a759a0b16c1c34f6.tar.zst
cuberite-096cdac80d222ac0be2a0554a759a0b16c1c34f6.zip
Diffstat (limited to 'src/Protocol/ChunkDataSerializer.h')
-rw-r--r--src/Protocol/ChunkDataSerializer.h15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/Protocol/ChunkDataSerializer.h b/src/Protocol/ChunkDataSerializer.h
index 26cbd564a..45b0431ab 100644
--- a/src/Protocol/ChunkDataSerializer.h
+++ b/src/Protocol/ChunkDataSerializer.h
@@ -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[]