From 791bf732fd490700748f798c617ecac1af152cd4 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Mon, 8 Jul 2013 12:59:15 +0000 Subject: 1.6.2 protocol implemented, both in MCServer and in ProtoProxy git-svn-id: http://mc-server.googlecode.com/svn/trunk@1669 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Protocol/Protocol16x.cpp | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'source/Protocol/Protocol16x.cpp') diff --git a/source/Protocol/Protocol16x.cpp b/source/Protocol/Protocol16x.cpp index a4572977d..7036dfbca 100644 --- a/source/Protocol/Protocol16x.cpp +++ b/source/Protocol/Protocol16x.cpp @@ -5,6 +5,8 @@ Implements the 1.6.x protocol classes: - cProtocol161 - release 1.6.1 protocol (#73) + - cProtocol162 + - release 1.6.2 protocol (#74) (others may be added later in the future for the 1.6 release series) */ @@ -48,6 +50,8 @@ enum +/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// cProtocol161: cProtocol161::cProtocol161(cClientHandle * a_Client) : super(a_Client) @@ -200,3 +204,31 @@ int cProtocol161::ParsePacket(unsigned char a_PacketType) + +/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// cProtocol162: + +cProtocol162::cProtocol162(cClientHandle * a_Client) : + super(a_Client) +{ +} + + + + + +void cProtocol162::SendPlayerMaxSpeed(void) +{ + cCSLock Lock(m_CSPacket); + WriteByte(PACKET_ENTITY_PROPERTIES); + WriteInt(m_Client->GetPlayer()->GetUniqueID()); + WriteInt(1); + WriteString("generic.movementSpeed"); + WriteDouble(m_Client->GetPlayer()->GetMaxSpeed()); + WriteShort(0); + Flush(); +} + + + + -- cgit v1.2.3