[server] Implement/match CGangZonePool::FlashForAll(...)

This commit is contained in:
RD42 2024-09-21 22:24:16 +08:00
parent 50cd412a00
commit cbc0c870be
2 changed files with 10 additions and 0 deletions

View File

@ -87,3 +87,12 @@ void CGangZonePool::FlashForPlayer(PLAYERID playerId, WORD wZone, DWORD dwColor)
pNetGame->SendToPlayer(RPC_ScrFlashGangZone, &bsParams, playerId, 2);
}
void CGangZonePool::FlashForAll(WORD wZone, DWORD dwColor)
{
RakNet::BitStream bsParams;
bsParams.Write(wZone);
dwColor = RGBA_ABGR(dwColor);
bsParams.Write(dwColor);
pNetGame->BroadcastData(RPC_ScrFlashGangZone, &bsParams, INVALID_PLAYER_ID, 2);
}

View File

@ -19,6 +19,7 @@ public:
void HideForPlayer(PLAYERID playerId, WORD wZone);
void HideForAll(WORD wZone);
void FlashForPlayer(PLAYERID playerId, WORD wZone, DWORD dwColor);
void FlashForAll(WORD wZone, DWORD dwColor);
};
//----------------------------------------------------