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

Method GetObjects

Source/Engine/Scripting/Scripting.cpp:787–799  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

785#endif
786
787Array<ScriptingObject*, HeapAllocation> Scripting::GetObjects()
788{
789 Array<ScriptingObject*> objects;
790 _objectsLocker.Lock();
791#if USE_OBJECTS_DISPOSE_CRASHES_DEBUGGING
792 for (const auto& e : _objectsDictionary)
793 objects.Add(e.Value.Ptr);
794#else
795 _objectsDictionary.GetValues(objects);
796#endif
797 _objectsLocker.Unlock();
798 return objects;
799}
800
801MClass* Scripting::FindClass(const StringAnsiView& fullname)
802{

Callers

nothing calls this directly

Calls 4

LockMethod · 0.80
UnlockMethod · 0.80
AddMethod · 0.45
GetValuesMethod · 0.45

Tested by

no test coverage detected