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

Method GetModule

Source/Engine/Scripting/BinaryModule.cpp:680–693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

678}
679
680BinaryModule* BinaryModule::GetModule(const StringAnsiView& name)
681{
682 BinaryModule* result = nullptr;
683 auto& modules = GetModules();
684 for (int32 i = 0; i < modules.Count(); i++)
685 {
686 if (modules[i]->GetName() == name)
687 {
688 result = modules[i];
689 break;
690 }
691 }
692 return result;
693}
694
695BinaryModule::BinaryModule()
696{

Callers

nothing calls this directly

Calls 2

CountMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected