stub_mm/stub_mm.h
author David Anderson <dvander@alliedmods.net>
Sun Feb 17 23:05:27 2008 +0000 (2008-02-17)
changeset 498 c7b2f91c961b
parent 378 771bb7db49de
child 678 c676a9ce0320
permissions -rw-r--r--
new msvc build layout
     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 #if defined WIN32 && !defined snprintf
    23 #define snprintf _snprintf
    24 #endif
    25 
    26 class StubPlugin : public ISmmPlugin
    27 {
    28 public:
    29 	bool Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxlen, bool late);
    30 	bool Unload(char *error, size_t maxlen);
    31 	bool Pause(char *error, size_t maxlen);
    32 	bool Unpause(char *error, size_t maxlen);
    33 	void AllPluginsLoaded();
    34 public:
    35 	const char *GetAuthor();
    36 	const char *GetName();
    37 	const char *GetDescription();
    38 	const char *GetURL();
    39 	const char *GetLicense();
    40 	const char *GetVersion();
    41 	const char *GetDate();
    42 	const char *GetLogTag();
    43 };
    44 
    45 void Hook_ServerActivate(edict_t *pEdictList, int edictCount, int clientMax);
    46 
    47 extern StubPlugin g_StubPlugin;
    48 
    49 PLUGIN_GLOBALVARS();
    50 
    51 #endif //_INCLUDE_METAMOD_SOURCE_STUB_PLUGIN_H_