sourcemm/sample_mm/SamplePlugin.h
author David Anderson <dvander@alliedmods.net>
Sat Apr 16 19:59:26 2005 +0000 (2005-04-16)
changeset 7 8ef11f6189e4
child 20 7d2ff2c0999b
permissions -rw-r--r--
Initial import
     1 #ifndef _INCLUDE_SAMPLEPLUGIN_H
     2 #define _INCLUDE_SAMPLEPLUGIN_H
     3 
     4 #include <ISmmPlugin.h>
     5 
     6 class SamplePlugin : public ISmmPlugin
     7 {
     8 public:
     9 	bool Load(PluginId id, ISmmAPI *ismm, factories *list, char *error, size_t maxlen);
    10 	bool Unload(char *error, size_t maxlen);
    11 	bool Pause(char *error, size_t maxlen)
    12 	{
    13 		return true;
    14 	}
    15 	bool Unpause(char *error, size_t maxlen)
    16 	{
    17 		return true;
    18 	}
    19 public:
    20 	int GetApiVersion() { return PLAPI_VERSION; }
    21 public:
    22 	const char *GetAuthor()
    23 	{
    24 		return "BAILOPAN";
    25 	}
    26 	const char *GetName()
    27 	{
    28 		return "Sample Plugin";
    29 	}
    30 	const char *GetDescription()
    31 	{
    32 		return "Sample plugin that hooks basic things";
    33 	}
    34 	const char *GetURL()
    35 	{
    36 		return "http://www.sourcemm.net/";
    37 	}
    38 	const char *GetLicense()
    39 	{
    40 		return "zlib/libpng";
    41 	}
    42 	const char *GetVersion()
    43 	{
    44 		return "1.00";
    45 	}
    46 	const char *GetDate()
    47 	{
    48 		return __DATE__;
    49 	}
    50 	const char *GetLogTag()
    51 	{
    52 		return "SAMPLE";
    53 	}
    54 };
    55 
    56 extern SamplePlugin g_SamplePlugin;
    57 PLUGIN_GLOBALVARS();
    58 
    59 #endif //_INCLUDE_SAMPLEPLUGIN_H