251cced1f8
Various minor things done to project files Updated sample extension project file and updated makefile to the new unified version (more changes likely on the way) Updated regex project file and makefile --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401971
39 lines
1.0 KiB
C++
39 lines
1.0 KiB
C++
#ifndef _INCLUDE_SAMPLE_MMS_SOURCEMOD_EXTENSION_
|
|
#define _INCLUDE_SAMPLE_MMS_SOURCEMOD_EXTENSION_
|
|
|
|
#include "sm_sdk_config.h"
|
|
|
|
using namespace SourceMod;
|
|
|
|
class MyExtension : public IExtensionInterface
|
|
{
|
|
public:
|
|
virtual bool OnExtensionLoad(IExtension *me,
|
|
IShareSys *sys,
|
|
char *error,
|
|
size_t maxlength,
|
|
bool late);
|
|
virtual void OnExtensionUnload();
|
|
virtual void OnExtensionsAllLoaded();
|
|
virtual void OnExtensionPauseChange(bool pause);
|
|
virtual bool QueryRunning(char *error, size_t maxlength);
|
|
virtual bool IsMetamodExtension();
|
|
virtual const char *GetExtensionName();
|
|
virtual const char *GetExtensionURL();
|
|
virtual const char *GetExtensionTag();
|
|
virtual const char *GetExtensionAuthor();
|
|
virtual const char *GetExtensionVerString();
|
|
virtual const char *GetExtensionDescription();
|
|
virtual const char *GetExtensionDateString();
|
|
};
|
|
|
|
bool SM_LoadExtension(char *error, size_t maxlength);
|
|
void SM_UnloadExtension();
|
|
|
|
extern IShareSys *sharesys;
|
|
extern IExtension *myself;
|
|
extern MyExtension g_SMExt;
|
|
|
|
#endif //_INCLUDE_SAMPLE_MMS_SOURCEMOD_EXTENSION_
|
|
|