public/IPlayerHelpers.h
changeset 3825 ecd2382ca37e
parent 3808 b5f4ea4d3736
child 3913 a73cf1f26984
     1.1 --- a/public/IPlayerHelpers.h	Sat Mar 16 23:02:36 2013 -0400
     1.2 +++ b/public/IPlayerHelpers.h	Sat Mar 16 23:12:40 2013 -0400
     1.3 @@ -41,7 +41,7 @@
     1.4  #include <IAdminSystem.h>
     1.5  
     1.6  #define SMINTERFACE_PLAYERMANAGER_NAME		"IPlayerManager"
     1.7 -#define SMINTERFACE_PLAYERMANAGER_VERSION	16
     1.8 +#define SMINTERFACE_PLAYERMANAGER_VERSION	17
     1.9  
    1.10  struct edict_t;
    1.11  class IPlayerInfo;
    1.12 @@ -237,6 +237,15 @@
    1.13  		 * @return		True if the Replay bot, false otherwise.
    1.14  		 */
    1.15  		virtual bool IsReplay() const =0;
    1.16 +		
    1.17 +		/**
    1.18 +		 * @brief Returns the client's Steam account ID.
    1.19 +		 *
    1.20 +		 * @param validated		Check backend validation status.
    1.21 +		 * 
    1.22 +		 * @return			Steam account ID or 0 if not available.
    1.23 +		 */
    1.24 +		virtual unsigned int GetSteamAccountID(bool validated = true) =0;
    1.25  	};
    1.26  
    1.27  	/**