diff options
author | Mat <mail@mathias.is> | 2020-03-29 17:54:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-29 17:54:37 +0200 |
commit | 31ace87d285d14f8799bc45ab5c812822854d0dd (patch) | |
tree | ee891fd5ec2b9d391f803e3d9dfed541df53179d /src/Protocol/ProtocolRecognizer.h | |
parent | Fix build on Clang (diff) | |
download | cuberite-31ace87d285d14f8799bc45ab5c812822854d0dd.tar cuberite-31ace87d285d14f8799bc45ab5c812822854d0dd.tar.gz cuberite-31ace87d285d14f8799bc45ab5c812822854d0dd.tar.bz2 cuberite-31ace87d285d14f8799bc45ab5c812822854d0dd.tar.lz cuberite-31ace87d285d14f8799bc45ab5c812822854d0dd.tar.xz cuberite-31ace87d285d14f8799bc45ab5c812822854d0dd.tar.zst cuberite-31ace87d285d14f8799bc45ab5c812822854d0dd.zip |
Diffstat (limited to 'src/Protocol/ProtocolRecognizer.h')
-rw-r--r-- | src/Protocol/ProtocolRecognizer.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Protocol/ProtocolRecognizer.h b/src/Protocol/ProtocolRecognizer.h index cca1facb3..da87ba6bd 100644 --- a/src/Protocol/ProtocolRecognizer.h +++ b/src/Protocol/ProtocolRecognizer.h @@ -141,7 +141,6 @@ public: virtual void SendData(const char * a_Data, size_t a_Size) override; - protected: /** The recognized protocol */ @@ -156,6 +155,9 @@ protected: /** Returns the protocol-specific packet ID given the protocol-agnostic packet enum. */ virtual UInt32 GetPacketID(ePacketType a_PacketType) override; + /** Converts eMonsterType to protocol-specific mob types */ + virtual UInt32 GetProtocolMobType(eMonsterType a_MobType) override; + // Packet handlers while in status state (m_InPingForUnrecognizedVersion == true) void HandlePacketStatusRequest(); void HandlePacketStatusPing(); |