sourcemm/ISmmAPI.h
changeset 318 d601b515c839
parent 294 0d87bc8606f8
child 326 1cefbedb2d6d
     1.1 --- a/sourcemm/ISmmAPI.h	Tue Apr 24 20:30:17 2007 +0000
     1.2 +++ b/sourcemm/ISmmAPI.h	Tue Apr 24 22:07:00 2007 +0000
     1.3 @@ -266,7 +266,7 @@
     1.4  	/**
     1.5  	 * @brief Tells SourceMM to add VSP hooking capability to plugins.  
     1.6  	 *
     1.7 -	 * Since this  potentially uses more resources than it would otherwise, plugins have to 
     1.8 +	 * Since this potentially uses more resources than it would otherwise, plugins have to 
     1.9  	 * explicitly enable the feature.  Whether requested or not, if it is enabled, all plugins 
    1.10  	 * will get a pointer to the VSP listener through IMetamodListener.
    1.11  	 */
    1.12 @@ -303,6 +303,15 @@
    1.13  	 * @return				Message name, or NULL on failure.
    1.14  	 */
    1.15  	virtual const char *GetUserMessage(int index, int *size=NULL) =0;
    1.16 +public:		// Added in 1.4.1 (1:6)
    1.17 +	/**
    1.18 +	 * @brief Returns the highest interface version of IServerPluginCallbacks that the engine supports.
    1.19 +	 * This is useful for games that run on older versions of the Source engine, such as The Ship.
    1.20 +	 *
    1.21 +	 * @return				Highest interface version of IServerPluginCallbacks.
    1.22 +	 *						Returns 0 if SourceMM's VSP listener isn't currently enabled.
    1.23 +	 */
    1.24 +	virtual int GetVSPVersion() =0;
    1.25  };
    1.26  
    1.27  
    1.28 @@ -314,7 +323,8 @@
    1.29   * 1.2   Added API more helper functions and new SourceHook version.
    1.30   * 1.2.2 Added API for printing to client console (with string formatting).
    1.31   * 1.3   Added new interface search API.
    1.32 - * 1.4	 Added VSP listener and user message API.
    1.33 + * 1.4   Added VSP listener and user message API.
    1.34 + * 1.4.1 Added API for getting highest supported version of IServerPluginCallbacks.
    1.35   */
    1.36  
    1.37  #endif //_INCLUDE_ISMM_API_H