diff options
author | tycho <work.tycho@gmail.com> | 2015-11-08 22:19:20 +0100 |
---|---|---|
committer | tycho <work.tycho@gmail.com> | 2015-12-18 19:14:34 +0100 |
commit | 2b48f586aac6f15cb4e2c80bcf3a8eaeb8abda75 (patch) | |
tree | 72623b02dd7039a1218f082ba096a1b2134a16f2 /src/Protocol/Protocol17x.h | |
parent | Broken (diff) | |
download | cuberite-ProtocolRefactor.tar cuberite-ProtocolRefactor.tar.gz cuberite-ProtocolRefactor.tar.bz2 cuberite-ProtocolRefactor.tar.lz cuberite-ProtocolRefactor.tar.xz cuberite-ProtocolRefactor.tar.zst cuberite-ProtocolRefactor.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Protocol/Protocol17x.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/Protocol/Protocol17x.h b/src/Protocol/Protocol17x.h index 8e85880b3..cd7cc22c5 100644 --- a/src/Protocol/Protocol17x.h +++ b/src/Protocol/Protocol17x.h @@ -41,6 +41,7 @@ namespace Json { class Value; } +class cDataSender; @@ -144,14 +145,9 @@ protected: typedef std::vector<std::unique_ptr<cClientAction>> ActionList; - AString m_ServerAddress; - - UInt16 m_ServerPort; AString m_AuthServerID; - /** State of the protocol. 1 = status, 2 = login, 3 = game */ - UInt32 m_State; /** The dimension that was last sent to a player in a Respawn or Login packet. Used to avoid Respawning into the same dimension, which confuses the client. */ @@ -197,10 +193,10 @@ protected: /** Parses Vanilla plugin messages into specific ClientHandle calls. The message payload is still in the bytebuffer, to be read by this function. */ - void HandleVanillaPluginMessage(cByteBuffer & a_ByteBuffer, const AString & a_Channel, UInt16 a_PayloadLength); + cProtocolError HandleVanillaPluginMessage(cByteBuffer & a_ByteBuffer, const AString & a_Channel, UInt16 a_PayloadLength, ActionList & a_Action) WARN_UNUSED; /** Sends the data to the client, encrypting them if needed. */ - //virtual void SendData(cByteBuffer & a_Buffer, const char * a_Data, size_t a_Size) override; + virtual void SendData(const char * a_Data, size_t a_Size) override; /** Sends the packet to the client. Called by the cPacketizer's destructor. */ virtual void SendPacket(cPacketizer & a_Packet) override; |