idTech4.Game.idGameRules.IsInGame C# (CSharp) Method

IsInGame() public method

public IsInGame ( int clientIndex ) : bool
clientIndex int
return bool
		public virtual bool IsInGame(int clientIndex)
		{
			if(this.Disposed == true)
			{
				throw new ObjectDisposedException(this.GetType().Name);
			}

			if((clientIndex > idR.Game.PlayerStates.Length) || (clientIndex < 0))
			{
				return false;
			}

			return idR.Game.PlayerStates[clientIndex].InGame;
		}