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

Method addToSet

Engine/source/console/simObject.cpp:1392–1408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1390//-----------------------------------------------------------------------------
1391
1392bool SimObject::addToSet(SimObjectId spid)
1393{
1394 if (mFlags.test(Added) == false)
1395 return false;
1396
1397 SimObject* ptr = Sim::findObject(spid);
1398 if (ptr)
1399 {
1400 SimSet* sp = dynamic_cast<SimSet*>(ptr);
1401 AssertFatal(sp != 0,
1402 "SimObject::addToSet: "
1403 "ObjectId does not refer to a set object");
1404 sp->addObject(this);
1405 return true;
1406 }
1407 return false;
1408}
1409
1410//-----------------------------------------------------------------------------
1411

Callers

nothing calls this directly

Calls 3

findObjectFunction · 0.70
testMethod · 0.45
addObjectMethod · 0.45

Tested by

no test coverage detected