GetPacketID for protocol packet IDs (#3977)
* Added GetPacketId method to protocol, implemented for all protocols. * Moved GetPacketID methods into a single file, alpha-sorted. * Fixed 1.12.1 HandlePacket switch statement. * Added SendLogin to the GetPacketId framework. * Added SpawnObject to GetPacketId framework. * Added missing sendEntityEquipment packet ID update for 1.12.1 * Added LeashEntity packet ID change to 1.12.1 * Alphabetized packet enum, added SpawnGlobalEntity to GetPacketId framework * Fixed clang errors * Indented cases, expanded comment for GetPacketId * Changed dyslexic comment.
This commit is contained in:
committed by
Alexander Harkness
parent
49c443896d
commit
aebfbfb8c8
@@ -52,6 +52,9 @@ public:
|
||||
/** Translates protocol version number into protocol version text: 49 -> "1.4.4" */
|
||||
static AString GetVersionTextFromInt(int a_ProtocolVersion);
|
||||
|
||||
/** GetPacketId is implemented in each protocol version class */
|
||||
virtual UInt32 GetPacketId(eOutgoingPackets a_Packet) override { return 0; }
|
||||
|
||||
/** Called when client sends some data: */
|
||||
virtual void DataReceived(const char * a_Data, size_t a_Size) override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user