summaryrefslogtreecommitdiffstats
path: root/source/Protocol132.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-02 14:09:58 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-02 14:09:58 +0200
commitc7d5c00a17c8e4d79f6b0e855d88cc42876f63a9 (patch)
treeb45b5dc8f89d105cef77c8cb5b8f4be270e903fd /source/Protocol132.h
parentAdded a CreateHexDump() function for easier raw data debugging (diff)
downloadcuberite-c7d5c00a17c8e4d79f6b0e855d88cc42876f63a9.tar
cuberite-c7d5c00a17c8e4d79f6b0e855d88cc42876f63a9.tar.gz
cuberite-c7d5c00a17c8e4d79f6b0e855d88cc42876f63a9.tar.bz2
cuberite-c7d5c00a17c8e4d79f6b0e855d88cc42876f63a9.tar.lz
cuberite-c7d5c00a17c8e4d79f6b0e855d88cc42876f63a9.tar.xz
cuberite-c7d5c00a17c8e4d79f6b0e855d88cc42876f63a9.tar.zst
cuberite-c7d5c00a17c8e4d79f6b0e855d88cc42876f63a9.zip
Diffstat (limited to '')
-rw-r--r--source/Protocol132.h7
1 files changed, 6 insertions, 1 deletions
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<CryptoPP::AES>::Encryption m_Encryptor;
// DEBUG:
+ CryptoPP::CFB_Mode<CryptoPP::AES>::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);