2023-11-22 23:38:00 +08:00
|
|
|
|
|
|
|
#include "main.h"
|
2023-12-13 23:57:24 +08:00
|
|
|
extern CNetGame *pNetGame;
|
2023-11-22 23:38:00 +08:00
|
|
|
|
|
|
|
CPlayerPool::CPlayerPool()
|
|
|
|
{
|
2023-12-12 22:42:03 +08:00
|
|
|
for(PLAYERID playerId = 0; playerId < MAX_PLAYERS; playerId++) {
|
|
|
|
m_bPlayerSlotState[playerId] = FALSE;
|
2024-04-11 22:47:05 +08:00
|
|
|
m_pPlayers[playerId] = NULL;
|
2023-12-12 22:42:03 +08:00
|
|
|
field_23A5C[playerId] = 0;
|
|
|
|
field_3E8C[playerId] = pNetGame->GetTime();
|
2023-11-22 23:38:00 +08:00
|
|
|
}
|
|
|
|
field_30964 = 0;
|
2024-04-27 18:18:23 +08:00
|
|
|
m_iPoolSize = 0;
|
2023-11-22 23:38:00 +08:00
|
|
|
field_FA0 = pNetGame->GetTime();
|
|
|
|
field_FA4 = 0;
|
|
|
|
field_FA8 = 0;
|
|
|
|
field_3096C = 0;
|
|
|
|
}
|
2023-12-13 23:58:15 +08:00
|
|
|
|
|
|
|
CPlayerPool::~CPlayerPool()
|
|
|
|
{
|
|
|
|
for(PLAYERID playerId = 0; playerId < MAX_PLAYERS; playerId++) {
|
|
|
|
Delete(playerId,0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
BOOL CPlayerPool::Delete(PLAYERID playerId, BYTE byteReason)
|
|
|
|
{
|
|
|
|
// TODO: CPlayerPool::Delete W .text:00466570 L .text:080D0A90
|
|
|
|
return FALSE;
|
|
|
|
}
|