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

Method unregisterObject

Engine/source/console/simObject.cpp:628–651  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

626//-----------------------------------------------------------------------------
627
628void SimObject::unregisterObject()
629{
630 mFlags.set(Removed);
631
632 // Notify object first
633 onRemove();
634
635 // Clear out any pending notifications before
636 // we call our own, just in case they delete
637 // something that we have referenced.
638 clearAllNotifications();
639
640 // Notify all objects that are waiting for delete
641 // messages
642 if (getGroup())
643 getGroup()->removeObject(this);
644
645 processDeleteNotifies();
646
647 // Do removals from the Sim.
648 Sim::gNameDictionary->remove(this);
649 Sim::gIdDictionary->remove(this);
650 Sim::cancelPendingEvents(this);
651}
652
653//-----------------------------------------------------------------------------
654

Callers

nothing calls this directly

Calls 4

cancelPendingEventsFunction · 0.85
setMethod · 0.45
removeObjectMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected