diff options
author | Mattes D <github@xoft.cz> | 2014-04-15 08:16:16 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-04-15 08:16:16 +0200 |
commit | 112dd2c5ec60b55807f73ada7057488a98e769a5 (patch) | |
tree | 7fe960574b01b1bc1b76327a3f163fd2f69d06ce /src/Protocol/Protocol17x.h | |
parent | ProtoProxy: Fixed weird gcc compilation errors. (diff) | |
parent | Implemented the 1.7.6 protocol and authenticator. (diff) | |
download | cuberite-112dd2c5ec60b55807f73ada7057488a98e769a5.tar cuberite-112dd2c5ec60b55807f73ada7057488a98e769a5.tar.gz cuberite-112dd2c5ec60b55807f73ada7057488a98e769a5.tar.bz2 cuberite-112dd2c5ec60b55807f73ada7057488a98e769a5.tar.lz cuberite-112dd2c5ec60b55807f73ada7057488a98e769a5.tar.xz cuberite-112dd2c5ec60b55807f73ada7057488a98e769a5.tar.zst cuberite-112dd2c5ec60b55807f73ada7057488a98e769a5.zip |
Diffstat (limited to 'src/Protocol/Protocol17x.h')
-rw-r--r-- | src/Protocol/Protocol17x.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/Protocol/Protocol17x.h b/src/Protocol/Protocol17x.h index 91186b270..5cafc4722 100644 --- a/src/Protocol/Protocol17x.h +++ b/src/Protocol/Protocol17x.h @@ -87,6 +87,7 @@ public: virtual void SendInventorySlot (char a_WindowID, short a_SlotNum, const cItem & a_Item) override; virtual void SendKeepAlive (int a_PingID) override; virtual void SendLogin (const cPlayer & a_Player, const cWorld & a_World) override; + virtual void SendLoginSuccess (void) override; virtual void SendMapColumn (int a_ID, int a_X, int a_Y, const Byte * a_Colors, unsigned int a_Length) override; virtual void SendMapDecorators (int a_ID, const cMapDecoratorList & a_Decorators) override; virtual void SendMapInfo (int a_ID, unsigned int a_Scale) override; @@ -252,7 +253,7 @@ protected: // Packet handlers while in the Status state (m_State == 1): void HandlePacketStatusPing (cByteBuffer & a_ByteBuffer); - void HandlePacketStatusRequest(cByteBuffer & a_ByteBuffer); + virtual void HandlePacketStatusRequest(cByteBuffer & a_ByteBuffer); // Packet handlers while in the Login state (m_State == 2): void HandlePacketLoginEncryptionResponse(cByteBuffer & a_ByteBuffer); @@ -306,3 +307,22 @@ protected: + +/** The version 5 lengthed protocol, used by 1.7.6 through 1.7.9. */ +class cProtocol176 : + public cProtocol172 +{ + typedef cProtocol172 super; + +public: + cProtocol176(cClientHandle * a_Client, const AString & a_ServerAddress, UInt16 a_ServerPort, UInt32 a_State); + + // cProtocol172 overrides: + virtual void SendPlayerSpawn(const cPlayer & a_Player) override; + virtual void HandlePacketStatusRequest(cByteBuffer & a_ByteBuffer) override; + +} ; + + + + |