public/IPlayerHelpers.h
changeset 1485 bc5a17fec5da
parent 1455 60b3b783bed8
child 1486 75c59c54ce09
     1.1 --- a/public/IPlayerHelpers.h	Wed Sep 26 13:12:37 2007 +0000
     1.2 +++ b/public/IPlayerHelpers.h	Wed Sep 26 13:12:59 2007 +0000
     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	4
     1.8 +#define SMINTERFACE_PLAYERMANAGER_VERSION	5
     1.9  
    1.10  struct edict_t;
    1.11  class IPlayerInfo;
    1.12 @@ -220,6 +220,13 @@
    1.13  		virtual void OnClientAuthorized(int client, const char *authstring)
    1.14  		{
    1.15  		}
    1.16 +
    1.17 +		/**
    1.18 +		 * @brief Called when the server is activated.
    1.19 +		 */
    1.20 +		virtual void OnServerActivated(int max_clients)
    1.21 +		{
    1.22 +		}
    1.23  	};
    1.24  
    1.25  	class IPlayerManager : public SMInterface
    1.26 @@ -288,6 +295,14 @@
    1.27  		 * @return				Client index, or 0 if invalid userid passed.
    1.28  		 */
    1.29  		virtual int GetClientOfUserId(int userid) =0;
    1.30 +
    1.31 +		/**
    1.32 +		 * @brief Returns whether or not the server is activated.
    1.33 +		 *
    1.34 +		 * @return				True if ServerActivate() has been called
    1.35 +		 *						at least once, false otherwise.
    1.36 +		 */
    1.37 +		virtual bool IsServerActivated() =0;
    1.38  	};
    1.39  }
    1.40