sample_mm/sample_mm.h
changeset 605 131878209276
parent 497 e6abd02a6a95
child 637 b66489d8aedc
     1.1 --- a/sample_mm/sample_mm.h	Mon Nov 24 07:50:01 2008 -0600
     1.2 +++ b/sample_mm/sample_mm.h	Mon Nov 24 12:03:02 2008 -0600
     1.3 @@ -27,7 +27,7 @@
     1.4  #define snprintf _snprintf
     1.5  #endif
     1.6  
     1.7 -class StubPlugin : public ISmmPlugin, public IMetamodListener
     1.8 +class SamplePlugin : public ISmmPlugin, public IMetamodListener
     1.9  {
    1.10  public:
    1.11  	bool Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxlen, bool late);
    1.12 @@ -57,9 +57,9 @@
    1.13  		const char *pszAddress,
    1.14  		char *reject,
    1.15  		int maxrejectlen);
    1.16 -#if defined ENGINE_ORANGEBOX
    1.17 +#if SOURCE_ENGINE >= SE_ORANGEBOX
    1.18  	void Hook_ClientCommand(edict_t *pEntity, const CCommand &args);
    1.19 -#elif defined ENGINE_ORIGINAL
    1.20 +#else
    1.21  	void Hook_ClientCommand(edict_t *pEntity);
    1.22  #endif
    1.23  public:
    1.24 @@ -72,12 +72,12 @@
    1.25  	const char *GetDate();
    1.26  	const char *GetLogTag();
    1.27  private:
    1.28 -#if defined ENGINE_ORIGINAL
    1.29 +#if SOURCE_ENGINE == SE_EPISODEONE
    1.30  	SourceHook::CallClass<IVEngineServer> *m_EngineCC;
    1.31  #endif
    1.32  };
    1.33  
    1.34 -extern StubPlugin g_StubPlugin;
    1.35 +extern SamplePlugin g_SamplePlugin;
    1.36  
    1.37  PLUGIN_GLOBALVARS();
    1.38