From b4ac9d702bcf958c7a658e7204306734e68058ad Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Mon, 24 Dec 2012 22:09:01 +0000 Subject: Added the 1.4.6 protocol git-svn-id: http://mc-server.googlecode.com/svn/trunk@1099 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Protocol/Protocol.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'source/Protocol/Protocol.h') 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); } -- cgit v1.2.3