2006-11-04 20:27:20 +01:00
|
|
|
#ifndef _INCLUDE_SOURCEMOD_MM_API_H_
|
|
|
|
#define _INCLUDE_SOURCEMOD_MM_API_H_
|
|
|
|
|
|
|
|
#include <ISmmPlugin.h>
|
2006-12-13 12:16:20 +01:00
|
|
|
#include <eiface.h>
|
2006-11-04 20:27:20 +01:00
|
|
|
|
2006-11-08 08:44:26 +01:00
|
|
|
/**
|
|
|
|
* @file Contains wrappers around required Metamod:Source API exports
|
|
|
|
*/
|
|
|
|
|
2006-11-05 01:29:44 +01:00
|
|
|
class SourceMod_Core : public ISmmPlugin
|
2006-11-04 20:27:20 +01:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
bool Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxlen, bool late);
|
|
|
|
bool Unload(char *error, size_t maxlen);
|
|
|
|
bool Pause(char *error, size_t maxlen);
|
|
|
|
bool Unpause(char *error, size_t maxlen);
|
|
|
|
void AllPluginsLoaded();
|
|
|
|
public:
|
|
|
|
const char *GetAuthor();
|
|
|
|
const char *GetName();
|
|
|
|
const char *GetDescription();
|
|
|
|
const char *GetURL();
|
|
|
|
const char *GetLicense();
|
|
|
|
const char *GetVersion();
|
|
|
|
const char *GetDate();
|
|
|
|
const char *GetLogTag();
|
|
|
|
};
|
|
|
|
|
2006-11-08 08:32:44 +01:00
|
|
|
extern SourceMod_Core g_SourceMod_Core;
|
2006-12-13 12:16:20 +01:00
|
|
|
extern IVEngineServer *engine;
|
|
|
|
extern IServerGameDLL *gamedll;
|
2006-11-04 20:27:20 +01:00
|
|
|
|
|
|
|
PLUGIN_GLOBALVARS();
|
|
|
|
|
|
|
|
#endif //_INCLUDE_SOURCEMOD_MM_API_H_
|