cProtocolRecognizer goes on a diet (#4770)

- Removed inheritance from cProtocol
This commit is contained in:
Tiger Wang
2020-07-17 18:46:50 +01:00
committed by GitHub
parent d8406c7c58
commit ff2c246de2
10 changed files with 247 additions and 1164 deletions
+2 -1
View File
@@ -17,6 +17,7 @@
#include "ChunkSender.h"
#include "EffectID.h"
#include "Protocol/ForgeHandshake.h"
#include "Protocol/ProtocolRecognizer.h"
#include "UUID.h"
@@ -437,7 +438,7 @@ private:
std::unordered_set<cChunkCoords, cChunkCoordsHash> m_ChunksToSend; // Chunks that need to be sent to the player (queued because they weren't generated yet or there's not enough time to send them)
cChunkCoordsList m_SentChunks; // Chunks that are currently sent to the client
std::unique_ptr<cProtocol> m_Protocol;
cMultiVersionProtocol m_Protocol;
/** Protects m_IncomingData against multithreaded access. */
cCriticalSection m_CSIncomingData;