idTech4.idEventLoop.RunEventLoop C# (CSharp) Метод

RunEventLoop() публичный Метод

public RunEventLoop ( bool commandExecution ) : bool
commandExecution bool
Результат bool
		public bool RunEventLoop(bool commandExecution)
		{
			SystemEvent ev;

			while(true)
			{
				if(commandExecution == true)
				{
					// execute any bound commands before processing another event
					idE.CmdSystem.ExecuteCommandBuffer();
				}

				ev = GetEvent();

				// if no more events are available
				if(ev.Type == SystemEventType.None)
				{
					return false;
				}

				ProcessEvent(ev);
			}

			return false;	// never reached
		}
		#endregion

Same methods

idEventLoop::RunEventLoop ( ) : bool