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

Method setProtectedParent

Engine/source/console/simObject.cpp:2249–2259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2247//-----------------------------------------------------------------------------
2248
2249bool SimObject::setProtectedParent( void *obj, const char *index, const char *data )
2250{
2251 SimGroup *parent = NULL;
2252 SimObject *object = static_cast<SimObject*>(obj);
2253
2254 if(Sim::findObject(data, parent))
2255 parent->addObject(object);
2256
2257 // always return false, because we've set mGroup when we called addObject
2258 return false;
2259}
2260
2261//-----------------------------------------------------------------------------
2262

Callers

nothing calls this directly

Calls 2

findObjectFunction · 0.70
addObjectMethod · 0.45

Tested by

no test coverage detected