core-legacy/ISmmAPI.h
changeset 667 938f7325d919
parent 666 acab40e6dbd7
     1.1 --- a/core-legacy/ISmmAPI.h	Thu Oct 29 00:52:39 2009 -0700
     1.2 +++ b/core-legacy/ISmmAPI.h	Thu Oct 29 01:12:10 2009 -0700
     1.3 @@ -35,6 +35,10 @@
     1.4  #define	MMIFACE_PLMANAGER		"IPluginManager"		/**< SourceMM Plugin Functions */
     1.5  #define IFACE_MAXNUM			999
     1.6  
     1.7 +#define SOURCE_ENGINE_UNKNOWN			0				/**< Could not determine the engine version */
     1.8 +#define SOURCE_ENGINE_ORIGINAL			1				/**< Original Source Engine (used by The Ship) */
     1.9 +#define SOURCE_ENGINE_EPISODEONE		2				/**< Episode 1 Source Engine (second major SDK) */
    1.10 +
    1.11  class ISmmAPI
    1.12  {
    1.13  public:
    1.14 @@ -316,6 +320,17 @@
    1.15  	 * 						EnableVSPListener().
    1.16  	 */
    1.17  	virtual IServerPluginCallbacks *GetVSPInfo(int *pVersion) =0;
    1.18 +
    1.19 +	/**
    1.20 +	 * @brief Returns the engine interface that MM:S is using as a backend.
    1.21 +	 *
    1.22 +	 * The values will be one of the SOURCE_ENGINE_* constants from the top
    1.23 +	 * of this file.
    1.24 +	 *
    1.25 +	 * @return				A SOURCE_ENGINE_* constant value.
    1.26 +	 */
    1.27 +	virtual int GetSourceEngineBuild() =0;
    1.28 +
    1.29  };
    1.30  
    1.31