summaryrefslogtreecommitdiffstats
path: root/src/ChunkSender.h
diff options
context:
space:
mode:
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;