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

This commit is contained in:
RD42
2024-09-21 22:23:33 +08:00
parent 72c438d0a5
commit e95d96467d
2 changed files with 8 additions and 0 deletions

View File

@ -71,3 +71,10 @@ void CGangZonePool::HideForPlayer(PLAYERID playerId, WORD wZone)
pNetGame->SendToPlayer(RPC_ScrRemoveGangZone, &bsParams, playerId, 2);
}
void CGangZonePool::HideForAll(WORD wZone)
{
RakNet::BitStream bsParams;
bsParams.Write(wZone);
pNetGame->BroadcastData(RPC_ScrRemoveGangZone, &bsParams, INVALID_PLAYER_ID, 2);
}

View File

@ -17,6 +17,7 @@ public:
void ShowForPlayer(PLAYERID playerId, WORD wZone, DWORD dwColor);
void ShowForAll(WORD wZone, DWORD dwColor);
void HideForPlayer(PLAYERID playerId, WORD wZone);
void HideForAll(WORD wZone);
};
//----------------------------------------------------