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

Method setProtectedParent

Engine/source/console/simObject.cpp:2103–2113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2101//-----------------------------------------------------------------------------
2102
2103bool SimObject::setProtectedParent( void *obj, const char *index, const char *data )
2104{
2105 SimGroup *parent = NULL;
2106 SimObject *object = static_cast<SimObject*>(obj);
2107
2108 if(Sim::findObject(data, parent))
2109 parent->addObject(object);
2110
2111 // always return false, because we've set mGroup when we called addObject
2112 return false;
2113}
2114
2115//-----------------------------------------------------------------------------
2116

Callers

nothing calls this directly

Calls 2

findObjectFunction · 0.70
addObjectMethod · 0.45

Tested by

no test coverage detected