core/sourcemm_api.h
author Borja Ferrer <faluco@alliedmods.net>
Sat Dec 16 02:16:21 2006 +0000 (2006-12-16)
changeset 216 38b1bdbc5bc9
parent 209 fae1894d884c
child 226 4663ea3fc2d3
permissions -rw-r--r--
Added initial console commands for plugins
fixed crash in plugin destructor
fixed compilation not being freed causing a crash
fixed small issues in plugin system
fixed plugin iterator not being reseted when freed and not being initialized it's current pointer.
fixed a bug where insertion of a prefixed string would not check whether a value could be set.
     1 #ifndef _INCLUDE_SOURCEMOD_MM_API_H_
     2 #define _INCLUDE_SOURCEMOD_MM_API_H_
     3 
     4 #include <ISmmPlugin.h>
     5 #include <eiface.h>
     6 
     7 /**
     8  * @file Contains wrappers around required Metamod:Source API exports
     9  */
    10 
    11 class SourceMod_Core : public ISmmPlugin
    12 {
    13 public:
    14 	bool Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxlen, bool late);
    15 	bool Unload(char *error, size_t maxlen);
    16 	bool Pause(char *error, size_t maxlen);
    17 	bool Unpause(char *error, size_t maxlen);
    18 	void AllPluginsLoaded();
    19 public:
    20 	const char *GetAuthor();
    21 	const char *GetName();
    22 	const char *GetDescription();
    23 	const char *GetURL();
    24 	const char *GetLicense();
    25 	const char *GetVersion();
    26 	const char *GetDate();
    27 	const char *GetLogTag();
    28 };
    29 
    30 extern SourceMod_Core g_SourceMod_Core;
    31 extern IVEngineServer *engine;
    32 extern IServerGameDLL *gamedll;
    33 
    34 PLUGIN_GLOBALVARS();
    35 
    36 #endif //_INCLUDE_SOURCEMOD_MM_API_H_