diff --git a/bot/gamemodes.cpp b/bot/gamemodes.cpp index 423533f..c8484db 100644 --- a/bot/gamemodes.cpp +++ b/bot/gamemodes.cpp @@ -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 +} + +//---------------------------------------------------------------------------------- diff --git a/bot/gamemodes.h b/bot/gamemodes.h index 444aa7a..ab8306f 100644 --- a/bot/gamemodes.h +++ b/bot/gamemodes.h @@ -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