示例#1
0
bool FMessageTracer::Tick( float DeltaTime )
{
	if (ResetPending)
	{
		ResetMessages();
		ResetPending = false;
	}

	// process new traces
	if (!Traces.IsEmpty())
	{
		TFunction<void()> Trace;

		while (Traces.Dequeue(Trace))
		{
			Trace();
		}
	}

	return true;
}
示例#2
0
bool FMessageTracer::Tick( float DeltaTime )
{
	if (ResetPending)
	{
		ResetMessages();
		ResetPending = false;
	}

	if (Traces.IsEmpty())
	{
		return false;
	}

	// process new traces
	TraceDelegate Trace;

	while (Traces.Dequeue(Trace))
	{
		Trace.Execute();
	}

	return true;
}