00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef _INCLUDE_METAMOD_SOURCE_STUB_PLUGIN_H_
00018 #define _INCLUDE_METAMOD_SOURCE_STUB_PLUGIN_H_
00019
00020 #include <ISmmPlugin.h>
00021
00022 class StubPlugin :
00023 public ISmmPlugin,
00024 public IMetamodListener
00025 {
00026 public:
00027 bool Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxlen, bool late);
00028 bool Unload(char *error, size_t maxlen);
00029 bool Pause(char *error, size_t maxlen);
00030 bool Unpause(char *error, size_t maxlen);
00031 void AllPluginsLoaded();
00032 const char *GetAuthor();
00033 const char *GetName();
00034 const char *GetDescription();
00035 const char *GetURL();
00036 const char *GetLicense();
00037 const char *GetVersion();
00038 const char *GetDate();
00039 const char *GetLogTag();
00040 public:
00041 void *OnMetamodQuery(const char *iface, int *ret);
00042 private:
00043 void BindToSourcemod();
00044 };
00045
00046 void Hook_ServerActivate(edict_t *pEdictList, int edictCount, int clientMax);
00047
00048 extern StubPlugin g_StubPlugin;
00049 extern ISmmPlugin *mmsplugin;
00050
00051 PLUGIN_GLOBALVARS();
00052
00053 #endif //_INCLUDE_METAMOD_SOURCE_STUB_PLUGIN_H_
00054