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

Draw() public method

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

			idPlayer player = idR.Game.Entities[clientIndex] as idPlayer;

			if(player == null)
			{
				return false;
			}

			// render the scene
			player.View.Draw(player.Hud);

			return true;
		}