[server] Rename most of the CNetGame member variables

This commit is contained in:
RD42 2023-10-30 00:27:01 +08:00
parent e1c7981db5
commit 7992273f86
2 changed files with 58 additions and 41 deletions

View File

@ -36,6 +36,19 @@
#include <string> #include <string>
#include "console.h" #include "console.h"
#include "scrhttps.h"
#include "scrtimers.h"
#include "gamemodes.h"
#include "filterscripts.h"
#include "playerpool.h"
#include "vehiclepool.h"
#include "pickuppool.h"
#include "objectpool.h"
#include "menupool.h"
#include "textdrawpool.h"
#include "labelpool.h"
#include "gangzonepool.h"
#include "actorpool.h"
#include "netgame.h" #include "netgame.h"
#include "plugins.h" #include "plugins.h"

View File

@ -2,55 +2,59 @@
#ifndef SAMPSRV_NETGAME_H #ifndef SAMPSRV_NETGAME_H
#define SAMPSRV_NETGAME_H #define SAMPSRV_NETGAME_H
class RakServerInterface {}; // TODO: RakServerInterface placeholder, remove this later
class CNetGame // size: W: 14808 L: 14816 class CNetGame // size: W: 14808 L: 14816
{ {
private: private:
int field_0; CGameMode *m_pGameMode;
int field_4; CFilterScripts *m_pFilterScripts;
int field_8; CPlayerPool *m_pPlayerPool;
int field_C; CVehiclePool *m_pVehiclePool;
int field_10; CPickupPool *m_pPickupPool;
int field_14; CObjectPool *m_pObjectPool;
int field_18; CMenuPool *m_pMenuPool;
int field_1C; CTextDrawPool *m_pTextPool;
int field_20; CLabelPool *m_pLabelPool;
int field_24; CGangZonePool *m_pGangZonePool;
int field_28; CActorPool *m_pActorPool;
int field_2C; int m_iCurrentGameModeIndex;
int field_30; int m_iCurrentGameModeRepeat;
int field_34; BOOL m_bFirstGameModeLoaded;
int field_38; CScriptHttps* m_pScriptHttps;
int field_3C; CScriptTimers* m_pScriptTimers;
int field_40; RakServerInterface *m_pRak;
int field_44; int m_iLastServerTickUpdate;
int field_48; int m_iServerTickCount;
int field_4C; int m_iServerTickRate;
int field_50; BOOL m_bLanMode;
char gap54[5]; int m_iShowPlayerMarkers;
char field_59; bool m_bShowNameTags;
char field_5A; BYTE m_byteWorldTime;
char field_5B; bool m_bAllowWeapons; // Allow weapons in interiors
bool m_bStuntBonus; // Insane stunt bonusses enabled?
char field_5C; char field_5C;
char field_5D; BYTE m_byteWeather;
int field_5E; int m_iGameState;
float field_62; float m_fGravity;
int field_66; int m_iDeathDropMoney;
char field_6A; char field_6A;
char field_6B; char field_6B;
char field_6C; bool m_bLimitGlobalChatRadius; // limit global player chat to other players within a certain radius
float field_6E; bool m_bUseCJWalk;
float field_72; float m_fGlobalChatRadius; // limit global chat radius
char field_76; float m_fNameTagDrawDistance; // The distance which players will start rendering nametags
char field_77; bool m_bDisableEnterExits; // Interior enter/exits disabled?
char gap78[1]; bool m_bNameTagLOS;
char field_79; bool m_bManualVehicleEngineAndLights;
float field_7A; bool m_bLimitPlayerMarkerRadius;
int field_7E; float m_fPlayerMarkerRadius;
BOOL m_bVehicleFriendlyFire;
#ifndef WIN32 #ifndef WIN32
double field_82; double m_dElapsedTime;
#endif #endif
int field_8A; int m_iSpawnsAvailable;
char gap8A[14674]; PLAYER_SPAWN_INFO m_AvailableSpawns[319];
public: public:
CNetGame(); CNetGame();