[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"
char szGameModeFileName[256];
//----------------------------------------------------------------------------------
CGameMode::CGameMode()
{
field_68 = 0;
field_69 = 0;
m_bInitialised = false;
m_bSleeping = false;
}
//----------------------------------------------------------------------------------
CGameMode::~CGameMode()
{
Unload();
}
//----------------------------------------------------------------------------------
void CGameMode::Unload()
{
// TODO: CGameMode::Unload
}
//----------------------------------------------------------------------------------

View File

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