2007-10-06 19:01:51 +02:00
|
|
|
/**
|
2009-11-14 01:25:56 +01:00
|
|
|
* vim: set ts=4 sw=4 tw=99 noet :
|
2007-10-06 19:01:51 +02:00
|
|
|
* ======================================================
|
|
|
|
* Metamod:Source Stub Plugin
|
|
|
|
* Written by AlliedModders LLC.
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* This software is provided 'as-is', without any express or implied warranty.
|
|
|
|
* In no event will the authors be held liable for any damages arising from
|
|
|
|
* the use of this software.
|
|
|
|
*
|
|
|
|
* This stub plugin is public domain.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _INCLUDE_METAMOD_SOURCE_STUB_PLUGIN_H_
|
|
|
|
#define _INCLUDE_METAMOD_SOURCE_STUB_PLUGIN_H_
|
|
|
|
|
|
|
|
#include <ISmmPlugin.h>
|
|
|
|
|
2008-02-18 00:05:27 +01:00
|
|
|
#if defined WIN32 && !defined snprintf
|
|
|
|
#define snprintf _snprintf
|
|
|
|
#endif
|
|
|
|
|
2007-10-06 19:01:51 +02:00
|
|
|
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();
|
|
|
|
};
|
|
|
|
|
|
|
|
void Hook_ServerActivate(edict_t *pEdictList, int edictCount, int clientMax);
|
|
|
|
|
|
|
|
extern StubPlugin g_StubPlugin;
|
|
|
|
|
|
|
|
PLUGIN_GLOBALVARS();
|
|
|
|
|
|
|
|
#endif //_INCLUDE_METAMOD_SOURCE_STUB_PLUGIN_H_
|