[bot] Implement CNetGame::SetPlayerState(...)

This commit is contained in:
RD42
2024-06-29 23:24:41 +08:00
parent 31d7bff68e
commit 0c4fe06271
2 changed files with 9 additions and 1 deletions

View File

@ -62,6 +62,14 @@ void CNetGame::SetVehicleAdded(VEHICLEID VehicleID, BOOL a2)
}
}
void CNetGame::SetPlayerState(PLAYERID playerId, BYTE byteState)
{
if(playerId < MAX_PLAYERS)
{
bytePlayerState[playerId] = byteState;
}
}
BYTE CNetGame::GetPlayerState(PLAYERID playerId)
{
if(playerId >= MAX_PLAYERS) return PLAYER_STATE_NONE;

View File

@ -106,7 +106,7 @@ public:
void SetPlayerAdded(PLAYERID playerId, BOOL a2);
void SetVehicleAdded(VEHICLEID VehicleID, BOOL a2);
void SetPlayerState(PLAYERID playerId, BYTE byteState);
BYTE GetPlayerState(PLAYERID playerId);
void StopRecordingPlayback();
void PauseRecordingPlayback();