public/mms_sample_ext/stub_mm.h
author Scott Ehlert <ds@alliedmods.net>
Fri Apr 11 17:16:36 2008 +0000 (2008-04-11)
changeset 1990 de135d1f05b1
parent 1952 b7aa2b626807
permissions -rw-r--r--
Added more missing svn:keywords properties to some files (this should be the last of them before I never have to do this again)
Moved sm_memtable files in sqlite extension to sdk directory (to be consistent with topmenus)
Some extension source files had an incorrect extension name in their headers
     1 /**
     2  * vim: set ts=4 :
     3  * ======================================================
     4  * Metamod:Source Stub Plugin
     5  * Written by AlliedModders LLC.
     6  * ======================================================
     7  *
     8  * This software is provided 'as-is', without any express or implied warranty.
     9  * In no event will the authors be held liable for any damages arising from 
    10  * the use of this software.
    11  *
    12  * This stub plugin is public domain.
    13  *
    14  * Version: $Id$
    15  */
    16 
    17 #ifndef _INCLUDE_METAMOD_SOURCE_STUB_PLUGIN_H_
    18 #define _INCLUDE_METAMOD_SOURCE_STUB_PLUGIN_H_
    19 
    20 #include <ISmmPlugin.h>
    21 
    22 class StubPlugin : 
    23 	public ISmmPlugin,
    24 	public IMetamodListener
    25 {
    26 public:
    27 	bool Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxlen, bool late);
    28 	bool Unload(char *error, size_t maxlen);
    29 	bool Pause(char *error, size_t maxlen);
    30 	bool Unpause(char *error, size_t maxlen);
    31 	void AllPluginsLoaded();
    32 	const char *GetAuthor();
    33 	const char *GetName();
    34 	const char *GetDescription();
    35 	const char *GetURL();
    36 	const char *GetLicense();
    37 	const char *GetVersion();
    38 	const char *GetDate();
    39 	const char *GetLogTag();
    40 public: //IMetamodListener
    41 	void *OnMetamodQuery(const char *iface, int *ret);
    42 private:
    43 	void BindToSourcemod();
    44 };
    45 
    46 void Hook_ServerActivate(edict_t *pEdictList, int edictCount, int clientMax);
    47 
    48 extern StubPlugin g_StubPlugin;
    49 extern ISmmPlugin *mmsplugin;
    50 
    51 PLUGIN_GLOBALVARS();
    52 
    53 #endif //_INCLUDE_METAMOD_SOURCE_STUB_PLUGIN_H_
    54