summaryrefslogtreecommitdiffstats
path: root/src/Protocol/ProtocolRecognizer.h
diff options
context:
space:
mode:
authorLane Kolbly <lane@rscheme.org>2017-09-02 18:46:57 +0200
committerAlexander Harkness <me@bearbin.net>2017-09-02 18:46:57 +0200
commitaebfbfb8c8d623ded8d409d29983a5e871a475bc (patch)
tree7c2d46d7c4dceb1aa11bdd905739a54f3846a167 /src/Protocol/ProtocolRecognizer.h
parentRevert "Replace ItemCallbacks with lambdas (#3948)" (diff)
downloadcuberite-aebfbfb8c8d623ded8d409d29983a5e871a475bc.tar
cuberite-aebfbfb8c8d623ded8d409d29983a5e871a475bc.tar.gz
cuberite-aebfbfb8c8d623ded8d409d29983a5e871a475bc.tar.bz2
cuberite-aebfbfb8c8d623ded8d409d29983a5e871a475bc.tar.lz
cuberite-aebfbfb8c8d623ded8d409d29983a5e871a475bc.tar.xz
cuberite-aebfbfb8c8d623ded8d409d29983a5e871a475bc.tar.zst
cuberite-aebfbfb8c8d623ded8d409d29983a5e871a475bc.zip
Diffstat (limited to 'src/Protocol/ProtocolRecognizer.h')
-rw-r--r--src/Protocol/ProtocolRecognizer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Protocol/ProtocolRecognizer.h b/src/Protocol/ProtocolRecognizer.h
index 295c6db16..f96d5aa77 100644
--- a/src/Protocol/ProtocolRecognizer.h
+++ b/src/Protocol/ProtocolRecognizer.h
@@ -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;