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_MM_API_H_
15 #define _INCLUDE_SOURCEMOD_MM_API_H_
17 #include <ISmmPlugin.h>
21 * @file Contains wrappers around required Metamod:Source API exports
24 class SourceMod_Core : public ISmmPlugin
27 bool Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxlen, bool late);
28 bool Unload(char *error, size_t maxlen);
29 bool Pause(char *error, size_t maxlen);
30 bool Unpause(char *error, size_t maxlen);
31 void AllPluginsLoaded();
33 const char *GetAuthor();
34 const char *GetName();
35 const char *GetDescription();
37 const char *GetLicense();
38 const char *GetVersion();
39 const char *GetDate();
40 const char *GetLogTag();
43 extern SourceMod_Core g_SourceMod_Core;
44 extern IVEngineServer *engine;
45 extern IServerGameDLL *gamedll;
46 extern IServerGameClients *serverClients;
47 extern ISmmPluginManager *g_pMMPlugins;
51 #endif //_INCLUDE_SOURCEMOD_MM_API_H_