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

Method GetInterface

Source/Engine/Scripting/BinaryModule.cpp:393–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

391}
392
393const ScriptingType::InterfaceImplementation* ScriptingType::GetInterface(const ScriptingTypeHandle& interfaceType) const
394{
395 const InterfaceImplementation* interfaces = Interfaces;
396 if (interfaces)
397 {
398 while (interfaces->InterfaceType)
399 {
400 if (*interfaces->InterfaceType == interfaceType)
401 return interfaces;
402 interfaces++;
403 }
404 }
405 if (BaseTypeHandle)
406 {
407 return BaseTypeHandle.GetType().GetInterface(interfaceType);
408 }
409 if (BaseTypePtr)
410 {
411 return BaseTypePtr->GetType().GetInterface(interfaceType);
412 }
413 return nullptr;
414}
415
416void ScriptingType::SetupScriptVTable(ScriptingTypeHandle baseTypeHandle)
417{

Callers 5

InvokeSerializerMethod · 0.80
OnGetDataMethod · 0.80
CreateInstanceMethod · 0.80
FromInterfaceMethod · 0.80
ToInterfaceMethod · 0.80

Calls 1

GetTypeMethod · 0.45

Tested by

no test coverage detected