summaryrefslogtreecommitdiffstats
path: root/source/Protocol/Protocol.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-12-24 23:09:01 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-12-24 23:09:01 +0100
commitb4ac9d702bcf958c7a658e7204306734e68058ad (patch)
treea813d6de18d6a331112846642d0bb5b2137d6259 /source/Protocol/Protocol.h
parentAdded Netherbrick slab (patch contributed by STR_Warrior) (diff)
downloadcuberite-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 'source/Protocol/Protocol.h')
-rw-r--r--source/Protocol/Protocol.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/source/Protocol/Protocol.h b/source/Protocol/Protocol.h
index b2423c6a2..956d31955 100644
--- a/source/Protocol/Protocol.h
+++ b/source/Protocol/Protocol.h
@@ -30,6 +30,12 @@ class cWorld;
+typedef unsigned char Byte;
+
+
+
+
+
class cProtocol
{
public:
@@ -75,7 +81,7 @@ public:
virtual void SendSoundEffect (const AString & a_SoundName, int a_SrcX, int a_SrcY, int a_SrcZ, float a_Volume, float a_Pitch) = 0; // a_Src coords are Block * 8
virtual void SendSoundParticleEffect(int a_EffectID, int a_SrcX, int a_SrcY, int a_SrcZ, int a_Data) = 0;
virtual void SendSpawnMob (const cMonster & a_Mob) = 0;
- virtual void SendSpawnObject (const cEntity & a_Entity, char a_ObjectType, int a_ObjectData, short a_SpeedX, short a_SpeedY, short a_SpeedZ) = 0;
+ 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) = 0;
virtual void SendTeleportEntity (const cEntity & a_Entity) = 0;
virtual void SendThunderbolt (int a_BlockX, int a_BlockY, int a_BlockZ) = 0;
virtual void SendTimeUpdate (Int64 a_WorldAge, Int64 a_TimeOfDay) = 0;
@@ -102,7 +108,7 @@ protected:
virtual void Flush(void) {};
// Helpers for writing partial packet data, write using SendData()
- void WriteByte(char a_Value)
+ void WriteByte(Byte a_Value)
{
SendData((const char *)&a_Value, 1);
}