From c7d5c00a17c8e4d79f6b0e855d88cc42876f63a9 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 2 Sep 2012 12:09:58 +0000 Subject: Next iteration on the 1.3.2 protocol. Still no good, but sometimes it just gets through. For your testing pleasures ;) git-svn-id: http://mc-server.googlecode.com/svn/trunk@819 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Protocol132.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source/Protocol132.h') diff --git a/source/Protocol132.h b/source/Protocol132.h index 2373693b7..d1f1ccbd3 100644 --- a/source/Protocol132.h +++ b/source/Protocol132.h @@ -36,7 +36,7 @@ public: virtual void SendBlockChange (int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta) override; virtual void SendChunkData (int a_ChunkX, int a_ChunkZ, cChunkDataSerializer & a_Serializer) override; virtual void SendDestroyEntity(const cEntity & a_Entity) override; - virtual void SendLogin (const cPlayer & a_Player) override; + virtual void SendLogin (const cPlayer & a_Player, const cWorld & a_World) override; virtual void SendPlayerSpawn (const cPlayer & a_Player) override; virtual void SendSpawnMob (const cMonster & a_Mob) override; virtual void SendUnloadChunk (int a_ChunkX, int a_ChunkZ) override; @@ -64,6 +64,7 @@ protected: CryptoPP::CFB_Mode::Encryption m_Encryptor; // DEBUG: + CryptoPP::CFB_Mode::Decryption m_Decryptor2; AString m_DataToSend; int m_CurrentIn, m_CurrentOut; int m_EncIn, m_EncOut; @@ -75,6 +76,10 @@ protected: // Items in slots are sent differently virtual void WriteItem(const cItem & a_Item) override; + virtual int ParseItem(cItem & a_Item) override; + + virtual void SendCompass(const cWorld & a_World); + virtual void SendEncryptionKeyRequest(const AString & a_Key); /// Decrypts the key and nonce, checks nonce, starts the symmetric encryption void HandleEncryptionKeyResponse(const AString & a_EncKey, const AString & a_EncNonce); -- cgit v1.2.3