From a999c5d845bd759c6d83b356c7b39e67473dc452 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Sat, 10 Apr 2021 15:57:16 +0100 Subject: More cProtocol cleanup * Alpha sort functions * Simplify hand handling * Fix left handed mode client-side display --- src/Protocol/Protocol.h | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'src/Protocol/Protocol.h') diff --git a/src/Protocol/Protocol.h b/src/Protocol/Protocol.h index 75ebb92d4..c87ab4a7d 100644 --- a/src/Protocol/Protocol.h +++ b/src/Protocol/Protocol.h @@ -25,12 +25,9 @@ class cExpOrb; class cPlayer; class cEntity; class cWindow; -class cPickup; class cPainting; class cWorld; class cMonster; -class cChunkDataSerializer; -class cFallingBlock; class cCompositeChat; class cStatManager; class cPacketizer; @@ -39,12 +36,6 @@ class cPacketizer; -typedef unsigned char Byte; - - - - - class cProtocol { public: @@ -469,10 +460,10 @@ protected: cByteBuffer m_OutPacketLenBuffer; /** Returns the protocol-specific packet ID given the protocol-agnostic packet enum. */ - virtual UInt32 GetPacketID(ePacketType a_Packet) = 0; + virtual UInt32 GetPacketID(ePacketType a_Packet) const = 0; /** Returns the current protocol's version, for handling status requests. */ - virtual Version GetProtocolVersion() = 0; + virtual Version GetProtocolVersion() const = 0; /** A generic data-sending routine, all outgoing packet data needs to be routed through this so that descendants may override it. */ virtual void SendData(ContiguousByteBufferView a_Data) = 0; -- cgit v1.2.3