MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / MakeModule

Method MakeModule

Source/ModuleFactory.cpp:539–548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

537}
538
539IDrawableModule* ModuleFactory::MakeModule(std::string type)
540{
541 auto moduleInfo = mFactoryMap.find(type);
542 if (moduleInfo != mFactoryMap.end())
543 {
544 if (moduleInfo->second.mCanCreateFn())
545 return moduleInfo->second.mCreatorFn();
546 }
547 return nullptr;
548}
549
550std::vector<ModuleFactory::Spawnable> ModuleFactory::GetSpawnableModules(ModuleCategory moduleCategory)
551{

Callers 1

CreateModuleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected