From 025cdfb201ce8cb3c5616016b48803d62236e3de Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Thu, 27 Dec 2012 07:11:37 +0000 Subject: ProtoProxy: Fixed 1.4.6 compatibility with vehicles, logging for entity metadata. Also removed logging to console, it was slowing the program too much. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1108 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- ProtoProxy/Connection.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ProtoProxy/Connection.h') diff --git a/ProtoProxy/Connection.h b/ProtoProxy/Connection.h index 7dc642042..54cc7ef71 100644 --- a/ProtoProxy/Connection.h +++ b/ProtoProxy/Connection.h @@ -140,6 +140,7 @@ protected: bool HandleServerEntityStatus(void); bool HandleServerEntityTeleport(void); bool HandleServerEntityVelocity(void); + bool HandleServerIncrementStatistic(void); bool HandleServerKeepAlive(void); bool HandleServerKick(void); bool HandleServerLogin(void); @@ -172,6 +173,9 @@ protected: /// Parses the metadata in a_Buffer into raw metadata in an AString; returns true if successful, false if not enough data bool ParseMetadata(cByteBuffer & a_Buffer, AString & a_Metadata); + /// Logs the contents of the metadata in the AString, using Log(). Assumes a_Metadata is valid (parsed by ParseMetadata()). The log is indented by a_IndentCount spaces + void LogMetadata(const AString & a_Metadata, size_t a_IndentCount); + /// Send EKResp to the server: void SendEncryptionKeyResponse(const AString & a_ServerPublicKey, const AString & a_Nonce); -- cgit v1.2.3