mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[bot] Update CNetGame::Init
This commit is contained in:
parent
7e0bd528fa
commit
ec63982f4d
@ -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)
|
||||
|
||||
/*
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user