Redesigned how server commands work. The "plugins" command will be back soon.
1 #ifndef _INCLUDE_SOURCEMOD_GLOBALHEADER_H_
2 #define _INCLUDE_SOURCEMOD_GLOBALHEADER_H_
4 #include "sm_globals.h"
7 * @brief Implements SourceMod's global overall management, API, and logic
16 * @brief Initializes SourceMod, or returns an error on failure.
18 bool InitializeSourceMod(char *error, size_t err_max, bool late);
21 * @brief Starts everything SourceMod needs to run
23 void StartSourceMod(bool late);
26 * @brief Shuts down all SourceMod components
28 void CloseSourceMod();
31 * @brief Map change hook
33 bool LevelInit(char const *pMapName, char const *pMapEntities, char const *pOldLevel, char const *pLandmarkName, bool loadGame, bool background);
36 * @brief Returns whether or not a mapload is in progress
41 * @brief Returns the base SourceMod folder.
43 const char *GetSMBaseDir();
46 * @brief Returns the base folder for file natives.
48 const char *GetBaseDir();
51 * @brief Returns whether our load in this map is late.
53 bool IsLateLoadInMap();
56 * @brief Loading plugins
58 void DoGlobalPluginLoads();
60 char m_SMBaseDir[PLATFORM_MAX_PATH+1];
62 bool m_IsLateLoadInMap;
65 extern SourceModBase g_SourceMod;
67 #endif //_INCLUDE_SOURCEMOD_GLOBALHEADER_H_