diff options
author | Mattes D <github@xoft.cz> | 2016-11-19 18:17:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-19 18:17:35 +0100 |
commit | 4ff997398773de36799b128bd4987cd36751f0c5 (patch) | |
tree | 2e102088f7f8c1bb4b398de9043cf36c4e42767a /src/Broadcaster.cpp | |
parent | Updated the Core. (diff) | |
parent | Removed ClientHandle.h dependencies from common headers. (diff) | |
download | cuberite-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.cpp | 15 |
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; }); } - |