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

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

View File

@ -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);
}

View File

@ -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);
};
//----------------------------------------------------