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

Method GetName

Source/Engine/Scripting/BinaryModule.cpp:596–605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

594}
595
596StringAnsiView ScriptingType::GetName() const
597{
598 int32 lastDotIndex = Fullname.FindLast('.');
599 if (lastDotIndex != -1)
600 {
601 lastDotIndex++;
602 return StringAnsiView(Fullname.Get() + lastDotIndex, Fullname.Length() - lastDotIndex);
603 }
604 return Fullname;
605}
606
607ScriptingTypeInitializer::ScriptingTypeInitializer(BinaryModule* module, const StringAnsiView& fullname, int32 size, ScriptingType::InitRuntimeHandler initRuntime, ScriptingType::SpawnHandler spawn, ScriptingTypeInitializer* baseType, ScriptingType::SetupScriptVTableHandler setupScriptVTable, ScriptingType::SetupScriptObjectVTableHandler setupScriptObjectVTable, const ScriptingType::InterfaceImplementation* interfaces)
608 : ScriptingTypeHandle(module, module->Types.Count())

Callers 15

InitMethod · 0.45
packChartsMethod · 0.45
onJobRenderMethod · 0.45
ObjectInternal_Create1Function · 0.45
LoadBinaryModulesMethod · 0.45
ToStringMethod · 0.45
GetModuleMethod · 0.45
FindMethodFunction · 0.45
OnLoadedMethod · 0.45
InitTypeMethod · 0.45

Calls 4

StringAnsiViewClass · 0.50
FindLastMethod · 0.45
GetMethod · 0.45
LengthMethod · 0.45

Tested by

no test coverage detected