public/ISourceMod.h
changeset 1690 7cc4f79a0416
parent 1668 e1700463d1d8
child 1729 0f60cc4ce8bb
     1.1 --- a/public/ISourceMod.h	Sat Nov 17 04:31:01 2007 +0000
     1.2 +++ b/public/ISourceMod.h	Sat Nov 17 05:33:47 2007 +0000
     1.3 @@ -43,7 +43,7 @@
     1.4  #include <time.h>
     1.5  
     1.6  #define SMINTERFACE_SOURCEMOD_NAME		"ISourceMod"
     1.7 -#define SMINTERFACE_SOURCEMOD_VERSION	3
     1.8 +#define SMINTERFACE_SOURCEMOD_VERSION	4
     1.9  
    1.10  /**
    1.11  * @brief Forward declaration of the KeyValues class.
    1.12 @@ -199,6 +199,23 @@
    1.13  		 * @return			Adjusted server time.
    1.14  		 */
    1.15  		virtual time_t GetAdjustedTime() =0;
    1.16 +
    1.17 +		/**
    1.18 +		 * @brief Sets the global client SourceMod will use for assisted 
    1.19 +		 * translations (that is, %t).
    1.20 +		 *
    1.21 +		 * @param index		Client index.
    1.22 +		 * @return			Old global client value.
    1.23 +		 */
    1.24 +		virtual unsigned int SetGlobalTarget(unsigned int index) =0;
    1.25 +
    1.26 +		/**
    1.27 +		 * @brief Returns the global client SourceMod is currently using 
    1.28 +		 * for assisted translations (that is, %t).
    1.29 +		 *
    1.30 +		 * @return			Global client value.
    1.31 +		 */
    1.32 +		virtual unsigned int GetGlobalTarget() const =0;
    1.33  	};
    1.34  }
    1.35