MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / CallEvent

Method CallEvent

Source/Editor/Scripting/ScriptsBuilder.cpp:453–469  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

451}
452
453void ScriptsBuilderImpl::CallEvent(EventType type)
454{
455 ScopeLock lock(_compileEventsLocker);
456
457 const int32 index = _compileEvents.Count();
458 _compileEvents.AddDefault(1);
459 auto& data = _compileEvents[index];
460 data.Type = type;
461
462 // Flush events on a main tread
463 if (IsInMainThread())
464 {
465 for (int32 i = 0; i < _compileEvents.Count(); i++)
466 CallCompileEvent(_compileEvents[i]);
467 _compileEvents.Clear();
468 }
469}
470
471void ScriptsBuilderImpl::CallCompileEvent(EventData& data)
472{

Callers

nothing calls this directly

Calls 4

IsInMainThreadFunction · 0.85
CountMethod · 0.45
AddDefaultMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected