2005-04-20 00:05:41 +02:00
|
|
|
/* ======== stub_mm ========
|
2006-08-13 13:55:42 +02:00
|
|
|
* Copyright (C) 2004-2006 Metamod:Source Development Team
|
2005-04-20 00:05:41 +02:00
|
|
|
* No warranties of any kind
|
|
|
|
*
|
|
|
|
* License: zlib/libpng
|
|
|
|
*
|
|
|
|
* Author(s): David "BAILOPAN" Anderson
|
|
|
|
* ============================
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _INCLUDE_SAMPLEPLUGIN_H
|
|
|
|
#define _INCLUDE_SAMPLEPLUGIN_H
|
|
|
|
|
|
|
|
#include <ISmmPlugin.h>
|
|
|
|
|
|
|
|
class StubPlugin : public ISmmPlugin
|
|
|
|
{
|
|
|
|
public:
|
2005-10-20 16:57:02 +02:00
|
|
|
bool Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxlen, bool late);
|
2005-04-20 00:05:41 +02:00
|
|
|
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();
|
|
|
|
private:
|
|
|
|
IServerGameDLL *m_ServerDll;
|
|
|
|
IServerGameDLL *m_ServerDll_CC;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern StubPlugin g_StubPlugin;
|
|
|
|
|
|
|
|
PLUGIN_GLOBALVARS();
|
|
|
|
|
2005-05-01 20:46:06 +02:00
|
|
|
//Called on ServerActivate. Same definition as server plugins
|
|
|
|
void ServerActivate_handler(edict_t *pEdictList, int edictCount, int clientMax);
|
|
|
|
|
2005-04-20 00:05:41 +02:00
|
|
|
#endif //_INCLUDE_SAMPLEPLUGIN_H
|