public/mms_sample_ext/stub_mm.h

00001 /**
00002  * vim: set ts=4 :
00003  * ======================================================
00004  * Metamod:Source Stub Plugin
00005  * Written by AlliedModders LLC.
00006  * ======================================================
00007  *
00008  * This software is provided 'as-is', without any express or implied warranty.
00009  * In no event will the authors be held liable for any damages arising from 
00010  * the use of this software.
00011  *
00012  * This stub plugin is public domain.
00013  *
00014  * Version: $Id$
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: //IMetamodListener
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 

Generated on Sun Dec 28 23:26:25 2008 for SourceMod SDK by  doxygen 1.5.1