[bot] Implement ServerJoin(...)

* Implement `CPlayerPool::New(...)`
This commit is contained in:
RD42
2024-06-08 21:39:40 +08:00
parent 2aa2b1e628
commit a88d88bb26
5 changed files with 44 additions and 8 deletions

View File

@ -29,6 +29,16 @@ CPlayerPool::~CPlayerPool()
//----------------------------------------------------
BOOL CPlayerPool::New(PLAYERID playerId, PCHAR szPlayerName)
{
m_bPlayerSlotState[playerId] = TRUE;
strcpy(m_szPlayerNames[playerId], szPlayerName);
pNetGame->SetPlayerAdded(playerId, FALSE);
return TRUE;
}
//----------------------------------------------------
BOOL CPlayerPool::Delete(PLAYERID playerId, BYTE byteReason)
{
m_bPlayerSlotState[playerId] = FALSE;