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

Method FindType

Source/Engine/Scripting/BinaryModule.cpp:883–893  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

881}
882
883ScriptingTypeHandle ManagedBinaryModule::FindType(const MClass* klass)
884{
885 auto typeModule = FindModule(klass);
886 if (typeModule)
887 {
888 int32 typeIndex;
889 if (typeModule->ClassToTypeIndex.TryGet(klass, typeIndex))
890 return ScriptingTypeHandle(typeModule, typeIndex);
891 }
892 return ScriptingTypeHandle();
893}
894
895#endif
896

Callers

nothing calls this directly

Calls 2

ScriptingTypeHandleClass · 0.70
TryGetMethod · 0.45

Tested by

no test coverage detected