MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / findObjectByInternalName

Method findObjectByInternalName

Engine/source/console/simSet.cpp:476–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

474//-----------------------------------------------------------------------------
475
476SimObject* SimSet::findObjectByInternalName(StringTableEntry internalName, bool searchChildren)
477{
478 iterator i;
479 for (i = begin(); i != end(); i++)
480 {
481 SimObject *childObj = static_cast<SimObject*>(*i);
482 if(childObj->getInternalName() == internalName)
483 return childObj;
484 else if (searchChildren)
485 {
486 SimSet* childSet = dynamic_cast<SimSet*>(*i);
487 if (childSet)
488 {
489 SimObject* found = childSet->findObjectByInternalName(internalName, searchChildren);
490 if (found) return found;
491 }
492 }
493 }
494
495 return NULL;
496}
497
498//-----------------------------------------------------------------------------
499

Callers 12

execMethod · 0.80
simSet.cppFile · 0.80
getUniqueInternalNameFunction · 0.80
onAddMethod · 0.80
findOrCreateMethod · 0.80
findMethod · 0.80
_addParameterMethod · 0.80
onInspectMethod · 0.80
findMethod · 0.80
processArgumentsMethod · 0.80

Calls 3

beginFunction · 0.85
endFunction · 0.85
getInternalNameMethod · 0.80

Tested by

no test coverage detected