mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +08:00
[bot] Implement CGameMode ctor/dtor
This commit is contained in:
parent
30614e0b23
commit
0d0d4bb6af
@ -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
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user