From c94d7184ebaf7e8540f717c70c1e03ae62e5a7bd Mon Sep 17 00:00:00 2001 From: peterbell10 Date: Tue, 24 Jul 2018 22:30:49 +0100 Subject: Broadcast refactor (#4264) * Move Broadcast functions from cChunkMap to cBroadcaster - Remove cBroadcastInterface in favour of cBroadcaster. - cChunk: Remove broadcast functions. * resurect broadcast interface * Absorb cBroadcaster into cWorld. Removes the need for forwarding the function calls. * Improve const-correctness * Use Int8 instead of char + Comment `ForClients` functions * Improve comments * Broadcaster: Rename ForClients functions --- src/Broadcaster.h | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 src/Broadcaster.h (limited to 'src/Broadcaster.h') diff --git a/src/Broadcaster.h b/src/Broadcaster.h deleted file mode 100644 index bdd63aa41..000000000 --- a/src/Broadcaster.h +++ /dev/null @@ -1,18 +0,0 @@ - -class cWorld; - -class cBroadcaster -{ - -public: - - cBroadcaster(cWorld * a_World); - - void BroadcastParticleEffect(const AString & a_ParticleName, const Vector3f a_Src, const Vector3f a_Offset, float a_ParticleData, int a_ParticleAmount, cClientHandle * a_Exclude = nullptr); - - void BroadcastParticleEffect(const AString & a_ParticleName, const Vector3f a_Src, const Vector3f a_Offset, float a_ParticleData, int a_ParticleAmount, std::array a_Data, cClientHandle * a_Exclude = nullptr); - -private: - cWorld * m_World; - -}; -- cgit v1.2.3