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

Method addToSet

Engine/source/console/simObject.cpp:1538–1554  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1536//-----------------------------------------------------------------------------
1537
1538bool SimObject::addToSet(SimObjectId spid)
1539{
1540 if (mFlags.test(Added) == false)
1541 return false;
1542
1543 SimObject* ptr = Sim::findObject(spid);
1544 if (ptr)
1545 {
1546 SimSet* sp = dynamic_cast<SimSet*>(ptr);
1547 AssertFatal(sp != 0,
1548 "SimObject::addToSet: "
1549 "ObjectId does not refer to a set object");
1550 sp->addObject(this);
1551 return true;
1552 }
1553 return false;
1554}
1555
1556//-----------------------------------------------------------------------------
1557

Callers

nothing calls this directly

Calls 3

findObjectFunction · 0.70
testMethod · 0.45
addObjectMethod · 0.45

Tested by

no test coverage detected