summaryrefslogtreecommitdiffstats
path: root/src/Broadcaster.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2016-11-18 20:00:04 +0100
committerMattes D <github@xoft.cz>2016-11-18 20:00:04 +0100
commit0bffa2935854d1b1d0110a33707650cafe084af7 (patch)
tree2e102088f7f8c1bb4b398de9043cf36c4e42767a /src/Broadcaster.cpp
parentUpdated the Core. (diff)
downloadcuberite-0bffa2935854d1b1d0110a33707650cafe084af7.tar
cuberite-0bffa2935854d1b1d0110a33707650cafe084af7.tar.gz
cuberite-0bffa2935854d1b1d0110a33707650cafe084af7.tar.bz2
cuberite-0bffa2935854d1b1d0110a33707650cafe084af7.tar.lz
cuberite-0bffa2935854d1b1d0110a33707650cafe084af7.tar.xz
cuberite-0bffa2935854d1b1d0110a33707650cafe084af7.tar.zst
cuberite-0bffa2935854d1b1d0110a33707650cafe084af7.zip
Diffstat (limited to '')
-rw-r--r--src/Broadcaster.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/Broadcaster.cpp b/src/Broadcaster.cpp
index 594d12208..d3d3de9f0 100644
--- a/src/Broadcaster.cpp
+++ b/src/Broadcaster.cpp
@@ -1,8 +1,16 @@
+// Broadcaster.cpp
+
+// Implements the broadcasting interface for cWorld
#include "Globals.h"
#include "Broadcaster.h"
#include "World.h"
#include "Chunk.h"
+#include "ClientHandle.h"
+
+
+
+
cBroadcaster::cBroadcaster(cWorld * a_World) :
m_World(a_World)
@@ -10,6 +18,9 @@ cBroadcaster::cBroadcaster(cWorld * a_World) :
}
+
+
+
void cBroadcaster::BroadcastParticleEffect(const AString & a_ParticleName, const Vector3f a_Src, const Vector3f a_Offset, float a_ParticleData, int a_ParticleAmount, cClientHandle * a_Exclude)
{
m_World->DoWithChunkAt(a_Src,
@@ -28,6 +39,9 @@ void cBroadcaster::BroadcastParticleEffect(const AString & a_ParticleName, const
}
+
+
+
void cBroadcaster::BroadcastParticleEffect(const AString & a_ParticleName, const Vector3f a_Src, const Vector3f a_Offset, float a_ParticleData, int a_ParticleAmount, std::array<int, 2> a_Data, cClientHandle * a_Exclude)
{
m_World->DoWithChunkAt(a_Src,
@@ -44,4 +58,3 @@ void cBroadcaster::BroadcastParticleEffect(const AString & a_ParticleName, const
return true;
});
}
-