mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2024-11-30 12:24:20 +01:00
1fb61175c1
--HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40141
46 lines
1.1 KiB
C++
46 lines
1.1 KiB
C++
/* ======== stub_mm ========
|
|
* Copyright (C) 2004-2005 Metamod:Source Development Team
|
|
* 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:
|
|
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();
|
|
private:
|
|
IServerGameDLL *m_ServerDll;
|
|
IServerGameDLL *m_ServerDll_CC;
|
|
};
|
|
|
|
extern StubPlugin g_StubPlugin;
|
|
|
|
PLUGIN_GLOBALVARS();
|
|
|
|
//Called on ServerActivate. Same definition as server plugins
|
|
void ServerActivate_handler(edict_t *pEdictList, int edictCount, int clientMax);
|
|
|
|
#endif //_INCLUDE_SAMPLEPLUGIN_H
|