summaryrefslogtreecommitdiffstats
path: root/src/ChunkSender.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-08-21 19:22:04 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2020-08-21 19:22:04 +0200
commita473e8ba52243a1a2a4f3aac840ed884d994fb0b (patch)
tree529ef1bcc101645ba31d269da8d398bb122a664b /src/ChunkSender.h
parentCompressPacket: reserve CompressedSize, not the uncompressed size (diff)
downloadcuberite-a473e8ba52243a1a2a4f3aac840ed884d994fb0b.tar
cuberite-a473e8ba52243a1a2a4f3aac840ed884d994fb0b.tar.gz
cuberite-a473e8ba52243a1a2a4f3aac840ed884d994fb0b.tar.bz2
cuberite-a473e8ba52243a1a2a4f3aac840ed884d994fb0b.tar.lz
cuberite-a473e8ba52243a1a2a4f3aac840ed884d994fb0b.tar.xz
cuberite-a473e8ba52243a1a2a4f3aac840ed884d994fb0b.tar.zst
cuberite-a473e8ba52243a1a2a4f3aac840ed884d994fb0b.zip
Diffstat (limited to 'src/ChunkSender.h')
-rw-r--r--src/ChunkSender.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ChunkSender.h b/src/ChunkSender.h
index 7caf9424e..2d9c478e9 100644
--- a/src/ChunkSender.h
+++ b/src/ChunkSender.h
@@ -27,6 +27,7 @@ Note that it may be called by world's BroadcastToChunk() if the client is still
#include "OSSupport/IsThread.h"
#include "ChunkDataCallback.h"
+#include "Protocol/ChunkDataSerializer.h"
@@ -109,6 +110,9 @@ protected:
cWorld & m_World;
+ /** An instance of a chunk serializer, held to maintain its internal cache. */
+ cChunkDataSerializer m_Serializer;
+
cCriticalSection m_CS;
std::priority_queue<sChunkQueue> m_SendChunks;
std::unordered_map<cChunkCoords, sSendChunk, cChunkCoordsHash> m_ChunkInfo;