summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol.h
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-09-11 22:27:35 +0200
committerHowaner <franzi.moos@googlemail.com>2014-09-11 22:27:35 +0200
commit6d5a5eb665d8f13dd3e4e7c279967556b0f9fa91 (patch)
tree841aabad78605c4bc7d5792d182df273df403751 /src/Protocol/Protocol.h
parent1.8: Fixed sign placing. (diff)
downloadcuberite-6d5a5eb665d8f13dd3e4e7c279967556b0f9fa91.tar
cuberite-6d5a5eb665d8f13dd3e4e7c279967556b0f9fa91.tar.gz
cuberite-6d5a5eb665d8f13dd3e4e7c279967556b0f9fa91.tar.bz2
cuberite-6d5a5eb665d8f13dd3e4e7c279967556b0f9fa91.tar.lz
cuberite-6d5a5eb665d8f13dd3e4e7c279967556b0f9fa91.tar.xz
cuberite-6d5a5eb665d8f13dd3e4e7c279967556b0f9fa91.tar.zst
cuberite-6d5a5eb665d8f13dd3e4e7c279967556b0f9fa91.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/Protocol.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/Protocol/Protocol.h b/src/Protocol/Protocol.h
index 2b41b809c..8c9fadd1a 100644
--- a/src/Protocol/Protocol.h
+++ b/src/Protocol/Protocol.h
@@ -46,11 +46,11 @@ typedef unsigned char Byte;
class cProtocol
{
public:
- cProtocol(cClientHandle * a_Client, int a_ProtocolVersion) :
- m_ProtocolVersion(a_ProtocolVersion),
+ cProtocol(cClientHandle * a_Client) :
m_Client(a_Client)
{
}
+
virtual ~cProtocol() {}
/// Called when client sends some data
@@ -131,11 +131,7 @@ public:
/// Returns the ServerID used for authentication through session.minecraft.net
virtual AString GetAuthServerID(void) = 0;
- /** Returns the protocol version of this protocol. */
- int GetProtocolVersion(void) const { return m_ProtocolVersion; }
-
protected:
- int m_ProtocolVersion;
cClientHandle * m_Client;
cCriticalSection m_CSPacket; // Each SendXYZ() function must acquire this CS in order to send the whole packet at once