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

Method removeFromSet

Engine/source/console/simObject.cpp:1578–1590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1576//-----------------------------------------------------------------------------
1577
1578bool SimObject::removeFromSet(SimObjectId sid)
1579{
1580 if (mFlags.test(Added) == false)
1581 return false;
1582
1583 SimSet *set;
1584 if(Sim::findObject(sid, set))
1585 {
1586 set->removeObject(this);
1587 return true;
1588 }
1589 return false;
1590}
1591
1592//-----------------------------------------------------------------------------
1593

Callers

nothing calls this directly

Calls 3

findObjectFunction · 0.70
testMethod · 0.45
removeObjectMethod · 0.45

Tested by

no test coverage detected