From 31ace87d285d14f8799bc45ab5c812822854d0dd Mon Sep 17 00:00:00 2001 From: Mat Date: Sun, 29 Mar 2020 18:54:37 +0300 Subject: Add protocol mob ID remapping (#4538) --- src/Protocol/Protocol_1_8.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Protocol/Protocol_1_8.h') diff --git a/src/Protocol/Protocol_1_8.h b/src/Protocol/Protocol_1_8.h index e71c8fbe5..527db15b7 100644 --- a/src/Protocol/Protocol_1_8.h +++ b/src/Protocol/Protocol_1_8.h @@ -15,6 +15,7 @@ Declares the 1.8 protocol classes: #include "Protocol.h" #include "../ByteBuffer.h" +#include "../World.h" #include "../mbedTLS++/AesCfb128Decryptor.h" #include "../mbedTLS++/AesCfb128Encryptor.h" @@ -164,6 +165,9 @@ protected: /** Nobody inherits 1.8, so it doesn't use this method */ virtual UInt32 GetPacketID(ePacketType a_Packet) override; + /** Converts eMonsterType to protocol-specific mob types */ + virtual UInt32 GetProtocolMobType(eMonsterType a_MobType) override; + /** 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 */ -- cgit v1.2.3