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

Function findObject

Engine/source/console/simManager.cpp:315–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313//---------------------------------------------------------------------------
314
315SimObject* findObject(const char* fileName, S32 declarationLine)
316{
317 PROFILE_SCOPE(SimFindObjectByLine);
318
319 if (!fileName)
320 return NULL;
321
322 if (declarationLine < 0)
323 return NULL;
324
325 if (!gRootGroup)
326 return NULL;
327
328 return gRootGroup->findObjectByLineNumber(fileName, declarationLine, true);
329}
330
331SimObject* findObject(const char* name)
332{

Callers 2

spawnObjectFunction · 0.70
getUniqueNameFunction · 0.70

Calls 12

dAtoiFunction · 0.85
getStackDepthMethod · 0.80
lookupnMethod · 0.80
getFastIntMethod · 0.80
lookupMethod · 0.45
insertMethod · 0.45
getIntValueMethod · 0.45
findObjectMethod · 0.45
findMethod · 0.45
getTypeMethod · 0.45
getStringMethod · 0.45

Tested by

no test coverage detected