2 * ===============================================================
3 * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved.
4 * ===============================================================
6 * This file is not open source and may not be copied without explicit
7 * written permission of AlliedModders LLC. This file may not be redistributed
8 * in whole or significant part.
9 * For information, see LICENSE.txt or http://www.sourcemod.net/license.php
14 #ifndef _INCLUDE_SOURCEMOD_GLOBALS_H_
15 #define _INCLUDE_SOURCEMOD_GLOBALS_H_
18 * @file Contains global headers that most files in SourceMod will need.
21 #include <sp_vm_types.h>
22 #include <sp_vm_api.h>
23 #include "sm_platform.h"
24 #include <IShareSys.h>
26 using namespace SourcePawn;
27 using namespace SourceMod;
30 * @brief Any class deriving from this will be automatically initiated/shutdown by SourceMod
34 friend class SourceModBase;
39 * @brief Called when SourceMod is initially loading
41 virtual void OnSourceModStartup(bool late)
46 * @brief Called after all global classes have initialized
48 virtual void OnSourceModAllInitialized()
53 * @brief Called when SourceMod is shutting down
55 virtual void OnSourceModShutdown()
60 * @brief Called after SourceMod is completely shut down
62 virtual void OnSourceModAllShutdown()
66 SMGlobalClass *m_pGlobalClassNext;
67 static SMGlobalClass *head;
70 extern ISourcePawnEngine *g_pSourcePawn;
71 extern IVirtualMachine *g_pVM;
72 extern IdentityToken_t *g_pCoreIdent;
74 #include "sm_autonatives.h"
76 #endif //_INCLUDE_SOURCEMOD_GLOBALS_H_