1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/sourcemm/sample_mm/SamplePlugin.h Sat Apr 16 19:59:26 2005 +0000
1.3 @@ -0,0 +1,59 @@
1.4 +#ifndef _INCLUDE_SAMPLEPLUGIN_H
1.5 +#define _INCLUDE_SAMPLEPLUGIN_H
1.6 +
1.7 +#include <ISmmPlugin.h>
1.8 +
1.9 +class SamplePlugin : public ISmmPlugin
1.10 +{
1.11 +public:
1.12 + bool Load(PluginId id, ISmmAPI *ismm, factories *list, char *error, size_t maxlen);
1.13 + bool Unload(char *error, size_t maxlen);
1.14 + bool Pause(char *error, size_t maxlen)
1.15 + {
1.16 + return true;
1.17 + }
1.18 + bool Unpause(char *error, size_t maxlen)
1.19 + {
1.20 + return true;
1.21 + }
1.22 +public:
1.23 + int GetApiVersion() { return PLAPI_VERSION; }
1.24 +public:
1.25 + const char *GetAuthor()
1.26 + {
1.27 + return "BAILOPAN";
1.28 + }
1.29 + const char *GetName()
1.30 + {
1.31 + return "Sample Plugin";
1.32 + }
1.33 + const char *GetDescription()
1.34 + {
1.35 + return "Sample plugin that hooks basic things";
1.36 + }
1.37 + const char *GetURL()
1.38 + {
1.39 + return "http://www.sourcemm.net/";
1.40 + }
1.41 + const char *GetLicense()
1.42 + {
1.43 + return "zlib/libpng";
1.44 + }
1.45 + const char *GetVersion()
1.46 + {
1.47 + return "1.00";
1.48 + }
1.49 + const char *GetDate()
1.50 + {
1.51 + return __DATE__;
1.52 + }
1.53 + const char *GetLogTag()
1.54 + {
1.55 + return "SAMPLE";
1.56 + }
1.57 +};
1.58 +
1.59 +extern SamplePlugin g_SamplePlugin;
1.60 +PLUGIN_GLOBALVARS();
1.61 +
1.62 +#endif //_INCLUDE_SAMPLEPLUGIN_H