2023-10-22 17:08:53 +08:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
//----------------------------------------------------
|
|
|
|
|
|
|
|
class CNetGame // size: 910 bytes
|
|
|
|
{
|
|
|
|
private:
|
2024-01-15 23:53:36 +08:00
|
|
|
RakClientInterface *m_pRakClient;
|
|
|
|
CPlayerPool *m_pPlayerPool;
|
|
|
|
|
|
|
|
|
2023-11-18 00:00:52 +08:00
|
|
|
CVehiclePool* m_pVehiclePool;
|
|
|
|
int m_iGameState;
|
2023-10-22 17:08:53 +08:00
|
|
|
int field_10;
|
|
|
|
int field_14;
|
|
|
|
char _gap18[6];
|
|
|
|
char field_1E; // m_byteWorldTime ?
|
|
|
|
char field_1F;
|
|
|
|
char field_20;
|
|
|
|
char _gap21[16];
|
|
|
|
char field_31;
|
|
|
|
char _gap32[2];
|
|
|
|
int field_34;
|
|
|
|
int field_38;
|
|
|
|
char field_3C;
|
|
|
|
char field_3D;
|
|
|
|
char field_3E;
|
|
|
|
char _gap3F;
|
|
|
|
char field_40;
|
|
|
|
char _gap41[9];
|
|
|
|
int field_4A[100];
|
|
|
|
char _gap1DA[4];
|
|
|
|
int field_1DE;
|
|
|
|
int field_1E2;
|
|
|
|
char _gap1E6[12];
|
|
|
|
int field_1F2;
|
|
|
|
char _gap1F6[4];
|
|
|
|
int field_1FA;
|
|
|
|
int field_1FE;
|
2023-11-18 00:00:52 +08:00
|
|
|
|
|
|
|
char m_szHostName[256];
|
|
|
|
char m_szHostOrIp[128];
|
|
|
|
int m_iPort;
|
|
|
|
|
|
|
|
CNPCMode* m_pNPCMode;
|
|
|
|
CScriptTimers* m_pScriptTimers;
|
2023-10-22 17:08:53 +08:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
CNetGame();
|
|
|
|
~CNetGame();
|
|
|
|
|
2023-11-18 00:00:52 +08:00
|
|
|
void Init(PCHAR szHostOrIp,int iPort,PCHAR szPlayerName,PCHAR szPass,PCHAR szNpcMode);
|
2023-10-22 17:08:53 +08:00
|
|
|
void Process();
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
//----------------------------------------------------
|