1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2024-12-10 22:24:12 +01:00
HLMetaModOfficial/sourcemm/stub_mm/stub_mm.h
David Anderson ed4411344b Updated for similar sample_mm changes
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40274
2006-08-14 05:49:53 +00:00

46 lines
1.1 KiB
C++

/* ======== stub_mm ========
* Copyright (C) 2004-2006 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