From 17a2c1b3886ed38b3e5e93238029476866b8c220 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Wed, 26 Dec 2012 09:12:00 +0000 Subject: Adjusted the protocol framework to support different types of falling block spawning. In brief, with cProtocol, "say what you want done, not how you want me to do it". But still 1.4.6 crashes on falling block spawning. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1104 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Protocol/Protocol.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/Protocol/Protocol.h') diff --git a/source/Protocol/Protocol.h b/source/Protocol/Protocol.h index 956d31955..52f3f2e3f 100644 --- a/source/Protocol/Protocol.h +++ b/source/Protocol/Protocol.h @@ -25,6 +25,7 @@ class cPickup; class cMonster; class cChunkDataSerializer; class cWorld; +class cFallingBlock; @@ -80,6 +81,7 @@ public: virtual void SendRespawn (void) = 0; 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 SendSpawnFallingBlock (const cFallingBlock & a_FallingBlock) = 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, Byte a_Yaw, Byte a_Pitch) = 0; virtual void SendTeleportEntity (const cEntity & a_Entity) = 0; -- cgit v1.2.3