1.1 --- a/core/sourcemod.h Wed Dec 13 11:14:25 2006 +0000
1.2 +++ b/core/sourcemod.h Wed Dec 13 11:16:20 2006 +0000
1.3 @@ -10,10 +10,41 @@
1.4 class SourceModBase
1.5 {
1.6 public:
1.7 + SourceModBase();
1.8 +public:
1.9 /**
1.10 * @brief Initializes SourceMod, or returns an error on failure.
1.11 */
1.12 bool InitializeSourceMod(char *error, size_t err_max, bool late);
1.13 +
1.14 + /**
1.15 + * @brief Starts everything SourceMod needs to run
1.16 + */
1.17 + void StartSourceMod(bool late);
1.18 +
1.19 + /**
1.20 + * @brief Map change hook
1.21 + */
1.22 + bool LevelInit(char const *pMapName, char const *pMapEntities, char const *pOldLevel, char const *pLandmarkName, bool loadGame, bool background);
1.23 +
1.24 + /**
1.25 + * @brief Returns whether or not a mapload is in progress
1.26 + */
1.27 + bool IsMapLoading();
1.28 +
1.29 + /**
1.30 + * @brief Returns the base SourceMod folder.
1.31 + */
1.32 + const char *GetSMBaseDir();
1.33 +
1.34 +private:
1.35 + /**
1.36 + * @brief Loading plugins
1.37 + */
1.38 + void DoGlobalPluginLoads();
1.39 +private:
1.40 + char m_SMBaseDir[PLATFORM_MAX_PATH+1];
1.41 + bool m_IsMapLoading;
1.42 };
1.43
1.44 extern SourceModBase g_SourceMod;