summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol15x.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2013-12-22 15:45:24 +0100
committerMattes D <github@xoft.cz>2013-12-22 15:45:24 +0100
commitf404130e8c5f91788eec9dfc3b9d22099b8d060c (patch)
tree64e2f2959d7e560101200541b85f18357826e163 /src/Protocol/Protocol15x.cpp
parentUsing regular assignments. (diff)
parentFixed compiler warning. (diff)
downloadcuberite-f404130e8c5f91788eec9dfc3b9d22099b8d060c.tar
cuberite-f404130e8c5f91788eec9dfc3b9d22099b8d060c.tar.gz
cuberite-f404130e8c5f91788eec9dfc3b9d22099b8d060c.tar.bz2
cuberite-f404130e8c5f91788eec9dfc3b9d22099b8d060c.tar.lz
cuberite-f404130e8c5f91788eec9dfc3b9d22099b8d060c.tar.xz
cuberite-f404130e8c5f91788eec9dfc3b9d22099b8d060c.tar.zst
cuberite-f404130e8c5f91788eec9dfc3b9d22099b8d060c.zip
Diffstat (limited to 'src/Protocol/Protocol15x.cpp')
-rw-r--r--src/Protocol/Protocol15x.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/Protocol/Protocol15x.cpp b/src/Protocol/Protocol15x.cpp
index c337d26e7..7e2aa9490 100644
--- a/src/Protocol/Protocol15x.cpp
+++ b/src/Protocol/Protocol15x.cpp
@@ -36,6 +36,7 @@ Implements the 1.5.x protocol classes:
enum
{
PACKET_WINDOW_OPEN = 0x64,
+ PACKET_PARTICLE_EFFECT = 0x3F,
} ;
@@ -76,6 +77,26 @@ void cProtocol150::SendWindowOpen(const cWindow & a_Window)
+void cProtocol150::SendParticleEffect(const AString & a_ParticleName, float a_SrcX, float a_SrcY, float a_SrcZ, float a_OffsetX, float a_OffsetY, float a_OffsetZ, float a_ParticleData, int a_ParticleAmmount)
+{
+ cCSLock Lock(m_CSPacket);
+ WriteByte(PACKET_PARTICLE_EFFECT);
+ WriteString(a_ParticleName);
+ WriteFloat(a_SrcX);
+ WriteFloat(a_SrcY);
+ WriteFloat(a_SrcZ);
+ WriteFloat(a_OffsetX);
+ WriteFloat(a_OffsetY);
+ WriteFloat(a_OffsetZ);
+ WriteFloat(a_ParticleData);
+ WriteInt(a_ParticleAmmount);
+ Flush();
+}
+
+
+
+
+
int cProtocol150::ParseWindowClick(void)
{
HANDLE_PACKET_READ(ReadChar, char, WindowID);