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

Method IsSubclassOf

Source/Engine/Scripting/BinaryModule.cpp:80–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78#endif
79
80bool ScriptingTypeHandle::IsSubclassOf(ScriptingTypeHandle c) const
81{
82 auto type = *this;
83 if (type == c)
84 return false;
85 for (; type; type = type.GetType().GetBaseType())
86 {
87 if (type == c)
88 return true;
89 }
90 return false;
91}
92
93bool ScriptingTypeHandle::IsAssignableFrom(ScriptingTypeHandle c) const
94{

Callers 7

TypeIsSubclassOfMethod · 0.45
onLoaded_MainThreadMethod · 0.45
ProcessGroupToolsMethod · 0.45
RunMethod · 0.45
GetMethod · 0.45
GetPlatformMethod · 0.45
GenerateRulesAssemblyMethod · 0.45

Calls 1

GetTypeMethod · 0.45

Tested by

no test coverage detected