From 925f960ea2aeeea8eaeae94a8ef6602690b215c2 Mon Sep 17 00:00:00 2001 From: dImrich Date: Thu, 4 Feb 2021 00:33:17 +0100 Subject: Adds playerlist header and footer broadcasting (1.8-1.13) --- src/Broadcaster.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/Broadcaster.cpp') diff --git a/src/Broadcaster.cpp b/src/Broadcaster.cpp index e7a29cb5d..98759a58b 100644 --- a/src/Broadcaster.cpp +++ b/src/Broadcaster.cpp @@ -418,6 +418,19 @@ void cWorld::BroadcastPlayerListAddPlayer(const cPlayer & a_Player, const cClien +void cWorld::BroadcastPlayerListHeaderFooter(const cCompositeChat & a_Header, const cCompositeChat & a_Footer) +{ + ForClientsInWorld(*this, nullptr, [&](cClientHandle & a_Client) + { + a_Client.SendPlayerListHeaderFooter(a_Header, a_Footer); + } + ); +} + + + + + void cWorld::BroadcastPlayerListRemovePlayer(const cPlayer & a_Player, const cClientHandle * a_Exclude) { ForClientsInWorld(*this, a_Exclude, [&](cClientHandle & a_Client) -- cgit v1.2.3