diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-12-24 23:09:01 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-12-24 23:09:01 +0100 |
commit | b4ac9d702bcf958c7a658e7204306734e68058ad (patch) | |
tree | a813d6de18d6a331112846642d0bb5b2137d6259 /source/Protocol/Protocol14x.h | |
parent | Added Netherbrick slab (patch contributed by STR_Warrior) (diff) | |
download | cuberite-b4ac9d702bcf958c7a658e7204306734e68058ad.tar cuberite-b4ac9d702bcf958c7a658e7204306734e68058ad.tar.gz cuberite-b4ac9d702bcf958c7a658e7204306734e68058ad.tar.bz2 cuberite-b4ac9d702bcf958c7a658e7204306734e68058ad.tar.lz cuberite-b4ac9d702bcf958c7a658e7204306734e68058ad.tar.xz cuberite-b4ac9d702bcf958c7a658e7204306734e68058ad.tar.zst cuberite-b4ac9d702bcf958c7a658e7204306734e68058ad.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Protocol/Protocol14x.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/source/Protocol/Protocol14x.h b/source/Protocol/Protocol14x.h new file mode 100644 index 000000000..bd8706f40 --- /dev/null +++ b/source/Protocol/Protocol14x.h @@ -0,0 +1,61 @@ +
+// Protocol14x.h
+
+/*
+Interfaces to the 1.4.x protocol classes representing these protocols:
+- cProtocol142:
+ - release 1.4.2 protocol (#47)
+ - release 1.4.4 protocol (#49) - the same protocol class is used, because the only difference is in a packet that MCServer doesn't implement yet (ITEM_DATA)
+ - release 1.4.5 protocol (same as 1.4.4)
+- cProtocol146:
+ - release 1.4.6 protocol (#51)
+*/
+
+
+
+
+
+#pragma once
+
+#include "Protocol132.h"
+
+
+
+
+
+class cProtocol142 :
+ public cProtocol132
+{
+ typedef cProtocol132 super;
+
+public:
+ cProtocol142(cClientHandle * a_Client);
+
+ // Sending commands (alphabetically sorted):
+ virtual void SendPickupSpawn (const cPickup & a_Pickup) override;
+ virtual void SendSoundParticleEffect(int a_EffectID, int a_SrcX, int a_SrcY, int a_SrcZ, int a_Data) override;
+ virtual void SendTimeUpdate (Int64 a_WorldAge, Int64 a_TimeOfDay) override;
+
+ // Specific packet parsers:
+ virtual int ParseLocaleViewDistance(void) override;
+} ;
+
+
+
+
+
+class cProtocol146 :
+ public cProtocol142
+{
+ typedef cProtocol142 super;
+
+public:
+ cProtocol146(cClientHandle * a_Client);
+
+ virtual void SendPickupSpawn (const cPickup & a_Pickup) override;
+ virtual void SendSpawnObject (const cEntity & a_Entity, char a_ObjectType, int a_ObjectData, short a_SpeedX, short a_SpeedY, short a_SpeedZ, Byte a_Yaw, Byte a_Pitch) override;
+} ;
+
+
+
+
|