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
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user