[bot] Implement CGameMode ctor/dtor

This commit is contained in:
RD42 2024-01-30 21:58:10 +08:00
parent 30614e0b23
commit 0d0d4bb6af
2 changed files with 38 additions and 7 deletions

View File

@ -1,8 +1,28 @@
#include "main.h" #include "main.h"
char szGameModeFileName[256];
//----------------------------------------------------------------------------------
CGameMode::CGameMode() CGameMode::CGameMode()
{ {
field_68 = 0; m_bInitialised = false;
field_69 = 0; m_bSleeping = false;
} }
//----------------------------------------------------------------------------------
CGameMode::~CGameMode()
{
Unload();
}
//----------------------------------------------------------------------------------
void CGameMode::Unload()
{
// TODO: CGameMode::Unload
}
//----------------------------------------------------------------------------------

View File

@ -2,17 +2,28 @@
#ifndef SAMPNPC_GAMEMODES_H #ifndef SAMPNPC_GAMEMODES_H
#define SAMPNPC_GAMEMODES_H #define SAMPNPC_GAMEMODES_H
class CGameMode // size: 110 extern char szGameModeFileName[256];
//----------------------------------------------------------------------------------
class CGameMode
{ {
private: private:
char _gap0[104]; AMX m_amx;
char field_68; bool m_bInitialised;
char field_69; bool m_bSleeping;
float field_6A; float m_fSleepTime;
public: public:
CGameMode(); CGameMode();
~CGameMode();
char* GetFileName() { return &szGameModeFileName[0]; };
void Unload();
}; };
//----------------------------------------------------------------------------------
#endif #endif