SA-MP/saco/net/netgame.h
RD42 b6d8c9c215 [saco] Update DoProcessStuff()
* Add `CNetGame::Process()` stub
* Add `CNetGame::UpdateNetwork()` stub
* Implement `GetPacketID(...)`
* Implement `HasTimestamps()`
2024-03-16 23:28:06 +08:00

80 lines
1.4 KiB
C++

#pragma once
#define GAMESTATE_WAIT_CONNECT 1
struct struc_41
{
char field_0;
int field_1;
char _gap5[17];
float field_16;
char field_1A;
char _gap1B[4];
char field_1F;
char field_20;
char field_21;
char field_22;
int field_23;
float field_27;
char _gap2B;
char field_2C;
char field_2D;
char field_2E;
char field_2F;
char _gap30[10];
};
typedef struct _NETGAME_POOLS {
CVehiclePool *pVehiclePool;
CPlayerPool *pPlayerPool;
CPickupPool *pPickupPool;
CObjectPool *pObjectPool;
CActorPool *pActorPool;
CGangZonePool *pGangZonePool;
CLabelPool *pLabelPool;
CTextDrawPool *pTextDrawPool;
CMenuPool *pMenuPool;
} NETGAME_POOLS;
class CNetGame // size: 994
{
private:
RakClientInterface *m_pRakClient;
void UpdateNetwork();
char _gap4[44];
char m_szHostOrIp[257];
char m_szHostName[257];
char field_232;
char field_233;
char field_234;
int m_iPort;
int field_239;
DWORD m_dwMapIcon[100];
int m_iGameState;
int field_3D1;
struc_41 *field_3D5;
char field_3D9;
char _gap3DA[4];
NETGAME_POOLS* m_pPools;
public:
CNetGame(char *a2, int a3, char *a4, char *a5);
void Process();
void InitPools();
DWORD GetTime();
CPlayerPool * GetPlayerPool() { return m_pPools->pPlayerPool; };
void ResetMapIcons();
void SetMapIcon(BYTE byteIndex, float fX, float fY, float fZ, BYTE byteIcon, DWORD dwColor, int iStyle);
void DisableMapIcon(BYTE byteIndex);
};