From 99f8c4434246c3483436b1abac917cf3f23ddbc2 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Mon, 20 Jul 2020 09:56:27 +0100 Subject: 1.14 connection support --- src/Protocol/ChunkDataSerializer.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/Protocol/ChunkDataSerializer.h') diff --git a/src/Protocol/ChunkDataSerializer.h b/src/Protocol/ChunkDataSerializer.h index ed3e5c8b1..ce80cc481 100644 --- a/src/Protocol/ChunkDataSerializer.h +++ b/src/Protocol/ChunkDataSerializer.h @@ -36,9 +36,12 @@ protected: void Serialize47 (const std::vector & a_SendTo); // Release 1.8 void Serialize107(const std::vector & a_SendTo); // Release 1.9 void Serialize110(const std::vector & a_SendTo); // Release 1.9.4 + template void Serialize393(const std::vector & a_SendTo); // Release 1.13 - 1.13.1 + void Serialize477(const std::vector & a_SendTo); // Release 1.13 - 1.13.1 - template - void Serialize393(const std::vector & a_SendTo); // Release 1.13 - 1.13.1 + /** Writes all blocks in a chunk section into a series of Int64. + Writes start from the bit directly subsequent to the previous write's end, possibly crossing over to the next Int64. */ + inline void WriteSectionDataSeamless(cByteBuffer & a_Packet, const cChunkData::sChunkSection & a_Section, const UInt8 a_BitsPerEntry); /** Finalises the data, compresses it if required, and delivers it to all clients. */ void CompressAndSend(cByteBuffer & a_Packet, const std::vector & a_SendTo); -- cgit v1.2.3