core/sourcemm_api.h
author David Anderson <dvander@alliedmods.net>
Fri Jan 26 02:04:07 2007 +0000 (2007-01-26)
changeset 373 bf3335acefdd
parent 370 d3a484f98f6d
child 448 25984ddd0ce0
permissions -rw-r--r--
added license headers to extensions
     1 /**
     2  * ===============================================================
     3  * SourceMod (C)2004-2007 AlliedModders LLC.  All rights reserved.
     4  * ===============================================================
     5  *
     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
    10  *
    11  * Version: $Id$
    12  */
    13 
    14 #ifndef _INCLUDE_SOURCEMOD_MM_API_H_
    15 #define _INCLUDE_SOURCEMOD_MM_API_H_
    16 
    17 #include <ISmmPlugin.h>
    18 #include <eiface.h>
    19 
    20 /**
    21  * @file Contains wrappers around required Metamod:Source API exports
    22  */
    23 
    24 class SourceMod_Core : public ISmmPlugin
    25 {
    26 public:
    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();
    32 public:
    33 	const char *GetAuthor();
    34 	const char *GetName();
    35 	const char *GetDescription();
    36 	const char *GetURL();
    37 	const char *GetLicense();
    38 	const char *GetVersion();
    39 	const char *GetDate();
    40 	const char *GetLogTag();
    41 };
    42 
    43 extern SourceMod_Core g_SourceMod_Core;
    44 extern IVEngineServer *engine;
    45 extern IServerGameDLL *gamedll;
    46 extern IServerGameClients *serverClients;
    47 extern ISmmPluginManager *g_pMMPlugins;
    48 
    49 PLUGIN_GLOBALVARS();
    50 
    51 #endif //_INCLUDE_SOURCEMOD_MM_API_H_