summaryrefslogtreecommitdiffstats
path: root/src/Broadcaster.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2016-11-19 18:17:35 +0100
committerGitHub <noreply@github.com>2016-11-19 18:17:35 +0100
commit4ff997398773de36799b128bd4987cd36751f0c5 (patch)
tree2e102088f7f8c1bb4b398de9043cf36c4e42767a /src/Broadcaster.cpp
parentUpdated the Core. (diff)
parentRemoved ClientHandle.h dependencies from common headers. (diff)
downloadcuberite-4ff997398773de36799b128bd4987cd36751f0c5.tar
cuberite-4ff997398773de36799b128bd4987cd36751f0c5.tar.gz
cuberite-4ff997398773de36799b128bd4987cd36751f0c5.tar.bz2
cuberite-4ff997398773de36799b128bd4987cd36751f0c5.tar.lz
cuberite-4ff997398773de36799b128bd4987cd36751f0c5.tar.xz
cuberite-4ff997398773de36799b128bd4987cd36751f0c5.tar.zst
cuberite-4ff997398773de36799b128bd4987cd36751f0c5.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;
});
}
-