idTech4.UI.idWindow.Time C# (CSharp) Method

Time() private method

private Time ( ) : void
return void
		private void Time()
		{
			if(_noTime == true)
			{
				return;
			}

			if(_timeLine == -1)
			{
				_timeLine = _gui.Time;
			}

			_command = string.Empty;

			foreach(idTimeLineEvent e in _timeLineEvents)
			{
				if((e.Pending == true) && ((_gui.Time - _timeLine) >= e.Time))
				{
					e.Pending = false;
					RunScriptList(e.Event);
				}
			}

			if(_gui.IsActive == true)
			{
				_gui.PendingCommand += _command;
			}
		}