summaryrefslogtreecommitdiffstats
path: root/source/Protocol/ProtocolRecognizer.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-11-15 12:00:40 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-11-15 12:00:40 +0100
commite41b15565c89b4f77adbcf5fce36e147549865f1 (patch)
treee3dd99d6cecce3bd8601ee55467aa9e3001b01fb /source/Protocol/ProtocolRecognizer.h
parentAdded a Printf() function that returns a new AString by value. (diff)
downloadcuberite-e41b15565c89b4f77adbcf5fce36e147549865f1.tar
cuberite-e41b15565c89b4f77adbcf5fce36e147549865f1.tar.gz
cuberite-e41b15565c89b4f77adbcf5fce36e147549865f1.tar.bz2
cuberite-e41b15565c89b4f77adbcf5fce36e147549865f1.tar.lz
cuberite-e41b15565c89b4f77adbcf5fce36e147549865f1.tar.xz
cuberite-e41b15565c89b4f77adbcf5fce36e147549865f1.tar.zst
cuberite-e41b15565c89b4f77adbcf5fce36e147549865f1.zip
Diffstat (limited to 'source/Protocol/ProtocolRecognizer.h')
-rw-r--r--source/Protocol/ProtocolRecognizer.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/source/Protocol/ProtocolRecognizer.h b/source/Protocol/ProtocolRecognizer.h
index 6672d34fc..d41e20f44 100644
--- a/source/Protocol/ProtocolRecognizer.h
+++ b/source/Protocol/ProtocolRecognizer.h
@@ -18,8 +18,8 @@
// Adjust these if a new protocol is added or an old one is removed:
-#define MCS_CLIENT_VERSIONS "1.2.4, 1.2.5, 1.3.1, 1.3.2, 1.4.2"
-#define MCS_PROTOCOL_VERSIONS "29, 39, 47"
+#define MCS_CLIENT_VERSIONS "1.2.4, 1.2.5, 1.3.1, 1.3.2, 1.4.2, 1.4.4"
+#define MCS_PROTOCOL_VERSIONS "29, 39, 47, 49"
@@ -36,13 +36,17 @@ public:
PROTO_VERSION_1_2_5 = 29,
PROTO_VERSION_1_3_2 = 39,
PROTO_VERSION_1_4_2 = 47,
+ PROTO_VERSION_1_4_4 = 49,
- PROTO_VERSION_LATEST = PROTO_VERSION_1_4_2, // Keep this up to date, this serves as the default for PrimaryServerVersion
+ PROTO_VERSION_LATEST = PROTO_VERSION_1_4_4, // Keep this up to date, this serves as the default for PrimaryServerVersion
} ;
cProtocolRecognizer(cClientHandle * a_Client);
virtual ~cProtocolRecognizer();
+ /// Translates protocol version number into protocol version text: 49 -> "1.4.4"
+ static AString GetVersionTextFromInt(int a_ProtocolVersion);
+
/// Called when client sends some data:
virtual void DataReceived(const char * a_Data, int a_Size) override;