diff options
author | Mattes D <github@xoft.cz> | 2016-12-15 20:21:43 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2016-12-16 00:07:22 +0100 |
commit | 0e3b3be7662f03b7487408f70548eaca1188da3d (patch) | |
tree | 3751d17812c46e5847684d8f968f24c4a4e268d2 /src/Protocol/Protocol_1_10.cpp | |
parent | APIDump: Load the official undocumented from alternate location. (diff) | |
download | cuberite-0e3b3be7662f03b7487408f70548eaca1188da3d.tar cuberite-0e3b3be7662f03b7487408f70548eaca1188da3d.tar.gz cuberite-0e3b3be7662f03b7487408f70548eaca1188da3d.tar.bz2 cuberite-0e3b3be7662f03b7487408f70548eaca1188da3d.tar.lz cuberite-0e3b3be7662f03b7487408f70548eaca1188da3d.tar.xz cuberite-0e3b3be7662f03b7487408f70548eaca1188da3d.tar.zst cuberite-0e3b3be7662f03b7487408f70548eaca1188da3d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Protocol/Protocol_1_10.cpp (renamed from src/Protocol/Protocol110x.cpp) | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/Protocol/Protocol110x.cpp b/src/Protocol/Protocol_1_10.cpp index 48ea0c6ba..c0d9d921f 100644 --- a/src/Protocol/Protocol110x.cpp +++ b/src/Protocol/Protocol_1_10.cpp @@ -1,15 +1,14 @@ -// Protocol110x.cpp +// Protocol_1_10.cpp /* -Implements the 1.10.x protocol classes: - - cProtocol1100 - - release 1.10.0 protocol (#210) -(others may be added later in the future for the 1.10 release series) +Implements the 1.10 protocol classes: + - cProtocol_1_10_0 + - release 1.10 protocol (#210), also used by 1.10.1 and 1.10.2 */ #include "Globals.h" -#include "Protocol110x.h" +#include "Protocol_1_10.h" #include "Packetizer.h" #include "json/json.h" @@ -283,7 +282,7 @@ namespace Metadata -cProtocol1100::cProtocol1100(cClientHandle * a_Client, const AString &a_ServerAddress, UInt16 a_ServerPort, UInt32 a_State) : +cProtocol_1_10_0::cProtocol_1_10_0(cClientHandle * a_Client, const AString &a_ServerAddress, UInt16 a_ServerPort, UInt32 a_State) : super(a_Client, a_ServerAddress, a_ServerPort, a_State) { } @@ -292,7 +291,7 @@ cProtocol1100::cProtocol1100(cClientHandle * a_Client, const AString &a_ServerAd -void cProtocol1100::SendSoundEffect(const AString & a_SoundName, double a_X, double a_Y, double a_Z, float a_Volume, float a_Pitch) +void cProtocol_1_10_0::SendSoundEffect(const AString & a_SoundName, double a_X, double a_Y, double a_Z, float a_Volume, float a_Pitch) { ASSERT(m_State == 3); // In game mode? @@ -310,7 +309,7 @@ void cProtocol1100::SendSoundEffect(const AString & a_SoundName, double a_X, dou -void cProtocol1100::HandlePacketStatusRequest(cByteBuffer & a_ByteBuffer) +void cProtocol_1_10_0::HandlePacketStatusRequest(cByteBuffer & a_ByteBuffer) { cServer * Server = cRoot::Get()->GetServer(); AString ServerDescription = Server->GetDescription(); @@ -355,7 +354,7 @@ void cProtocol1100::HandlePacketStatusRequest(cByteBuffer & a_ByteBuffer) -void cProtocol1100::WriteEntityMetadata(cPacketizer & a_Pkt, const cEntity & a_Entity) +void cProtocol_1_10_0::WriteEntityMetadata(cPacketizer & a_Pkt, const cEntity & a_Entity) { using namespace Metadata; @@ -552,7 +551,7 @@ void cProtocol1100::WriteEntityMetadata(cPacketizer & a_Pkt, const cEntity & a_E -void cProtocol1100::WriteMobMetadata(cPacketizer & a_Pkt, const cMonster & a_Mob) +void cProtocol_1_10_0::WriteMobMetadata(cPacketizer & a_Pkt, const cMonster & a_Mob) { using namespace Metadata; |