[bot] Update CNetGame::Init

This commit is contained in:
RD42 2024-01-15 23:53:36 +08:00
parent 7e0bd528fa
commit ec63982f4d
2 changed files with 15 additions and 4 deletions

View File

@ -73,8 +73,8 @@ CNetGame::~CNetGame()
//----------------------------------------------------
void CNetGame::Init(PCHAR szHostOrIp, int iPort,
PCHAR szPlayerName, PCHAR szPass,
PCHAR szNpcMode)
PCHAR szPlayerName, PCHAR szPass,
PCHAR szNpcMode)
{
strcpy(m_szHostName, "San Andreas Multiplayer");
strncpy(m_szHostOrIp, szHostOrIp, sizeof(m_szHostOrIp));
@ -88,6 +88,15 @@ void CNetGame::Init(PCHAR szHostOrIp, int iPort,
m_pPlayerPool->SetLocalPlayerName(szPlayerName);
m_pVehiclePool = new CVehiclePool();
m_pRakClient = RakNetworkFactory::GetRakClientInterface();
RegisterRPCs(m_pRakClient);
RegisterScriptRPCs(m_pRakClient);
// TODO: CNetGame::Init (W: 00416490 L: 080AD126)
/*

View File

@ -6,8 +6,10 @@
class CNetGame // size: 910 bytes
{
private:
int field_0; // highly m_pRakClient
CPlayerPool* m_pPlayerPool;
RakClientInterface *m_pRakClient;
CPlayerPool *m_pPlayerPool;
CVehiclePool* m_pVehiclePool;
int m_iGameState;
int field_10;