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

Method findObject

Engine/source/console/simSet.cpp:428–444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426//-----------------------------------------------------------------------------
427
428SimObject* SimSet::findObject( SimObject* object )
429{
430 bool found = false;
431 lock();
432 for( SimSet::iterator iter = begin(); iter != end(); ++ iter )
433 if( *iter == object )
434 {
435 found = true;
436 break;
437 }
438 unlock();
439
440 if( found )
441 return object;
442
443 return NULL;
444}
445
446//-----------------------------------------------------------------------------
447

Callers 3

execMethod · 0.45
findObjectFunction · 0.45
DefineNewEngineFunctionFunction · 0.45

Calls 5

beginFunction · 0.85
endFunction · 0.85
lookupnMethod · 0.80
getNameMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected