mirror of
https://github.com/accelerator74/l4dtoolz.git
synced 2024-12-22 14:37:26 +08:00
37 lines
1.2 KiB
C++
37 lines
1.2 KiB
C++
#ifndef _INCLUDE_METAMOD_SOURCE_STUB_PLUGIN_H_
|
|
#define _INCLUDE_METAMOD_SOURCE_STUB_PLUGIN_H_
|
|
|
|
#include <ISmmPlugin.h>
|
|
|
|
class l4dtoolz : public ISmmPlugin, public IConCommandBaseAccessor
|
|
{
|
|
public:
|
|
bool Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxlen, bool late);
|
|
bool Unload(char *error, size_t maxlen);
|
|
bool LevelInit(const char *pMapName, char const *pMapEntities, char const *pOldLevel, char const *pLandmarkName, bool loadGame, bool background);
|
|
void LevelShutdown();
|
|
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();
|
|
public: //IConCommandBaseAccessor
|
|
bool RegisterConCommandBase(ConCommandBase *pVar);
|
|
public:
|
|
static void OnChangeMaxplayers ( IConVar *var, const char *pOldValue, float flOldValue );
|
|
static void OnChangeUnreserved ( IConVar *var, const char *pOldValue, float flOldValue );
|
|
};
|
|
|
|
size_t UTIL_Format(char *buffer, size_t maxlength, const char *fmt, ...);
|
|
ServerClass *UTIL_FindServerClass(const char *classname);
|
|
|
|
extern l4dtoolz g_l4dtoolz;
|
|
|
|
PLUGIN_GLOBALVARS();
|
|
|
|
#endif //_INCLUDE_METAMOD_SOURCE_STUB_PLUGIN_H_
|