From 50cd412a00f0e71290a76ce8d8150683dba16dc5 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Sat, 21 Sep 2024 22:23:53 +0800 Subject: [PATCH] [server] Implement/match `CGangZonePool::FlashForPlayer(...)` --- server/gangzonepool.cpp | 9 +++++++++ server/gangzonepool.h | 1 + 2 files changed, 10 insertions(+) diff --git a/server/gangzonepool.cpp b/server/gangzonepool.cpp index 0a3adc0..18d953b 100644 --- a/server/gangzonepool.cpp +++ b/server/gangzonepool.cpp @@ -78,3 +78,12 @@ void CGangZonePool::HideForAll(WORD wZone) pNetGame->BroadcastData(RPC_ScrRemoveGangZone, &bsParams, INVALID_PLAYER_ID, 2); } +void CGangZonePool::FlashForPlayer(PLAYERID playerId, WORD wZone, DWORD dwColor) +{ + RakNet::BitStream bsParams; + bsParams.Write(wZone); + dwColor = RGBA_ABGR(dwColor); + bsParams.Write(dwColor); + pNetGame->SendToPlayer(RPC_ScrFlashGangZone, &bsParams, playerId, 2); +} + diff --git a/server/gangzonepool.h b/server/gangzonepool.h index a063e43..89a83ec 100644 --- a/server/gangzonepool.h +++ b/server/gangzonepool.h @@ -18,6 +18,7 @@ public: void ShowForAll(WORD wZone, DWORD dwColor); void HideForPlayer(PLAYERID playerId, WORD wZone); void HideForAll(WORD wZone); + void FlashForPlayer(PLAYERID playerId, WORD wZone, DWORD dwColor); }; //----------------------------------------------------