diff options
author | Lane Kolbly <lane@rscheme.org> | 2017-09-04 17:58:38 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2017-09-04 17:58:38 +0200 |
commit | 028a35ef0d4719e56a5bcc1a3f2a780128498f5d (patch) | |
tree | 67d5e9a4fdf9a89f59578b47149799b5b9550719 /src/Protocol/Protocol_1_8.h | |
parent | GetPacketID for protocol packet IDs (#3977) (diff) | |
download | cuberite-028a35ef0d4719e56a5bcc1a3f2a780128498f5d.tar cuberite-028a35ef0d4719e56a5bcc1a3f2a780128498f5d.tar.gz cuberite-028a35ef0d4719e56a5bcc1a3f2a780128498f5d.tar.bz2 cuberite-028a35ef0d4719e56a5bcc1a3f2a780128498f5d.tar.lz cuberite-028a35ef0d4719e56a5bcc1a3f2a780128498f5d.tar.xz cuberite-028a35ef0d4719e56a5bcc1a3f2a780128498f5d.tar.zst cuberite-028a35ef0d4719e56a5bcc1a3f2a780128498f5d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Protocol/Protocol_1_8.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Protocol/Protocol_1_8.h b/src/Protocol/Protocol_1_8.h index 472538d60..108cc9798 100644 --- a/src/Protocol/Protocol_1_8.h +++ b/src/Protocol/Protocol_1_8.h @@ -45,9 +45,6 @@ public: cProtocol_1_8_0(cClientHandle * a_Client, const AString & a_ServerAddress, UInt16 a_ServerPort, UInt32 a_State); - /** Nobody inherits 1.8, so it doesn't use this method */ - 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; @@ -176,6 +173,13 @@ protected: /** Adds the received (unencrypted) data to m_ReceivedData, parses complete packets */ void AddReceivedData(const char * a_Data, size_t a_Size); + /** Nobody inherits 1.8, so it doesn't use this method */ + virtual UInt32 GetPacketId(eOutgoingPackets a_Packet) override + { + ASSERT(!"GetPacketId for cProtocol_1_8_0 is not implemented."); + return 0; + } + /** Reads and handles the packet. The packet length and type have already been read. Returns true if the packet was understood, false if it was an unknown packet */ |