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

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

View File

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

View File

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