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

Method processDeleteNotifies

Engine/source/console/simObject.cpp:1799–1825  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1797//-----------------------------------------------------------------------------
1798
1799void SimObject::processDeleteNotifies()
1800{
1801 // clear out any delete notifies and
1802 // object refs.
1803
1804 while(mNotifyList)
1805 {
1806 Notify *note = mNotifyList;
1807 mNotifyList = note->next;
1808
1809 AssertFatal(note->type != Notify::ClearNotify, "Clear notes should be all gone.");
1810
1811 if(note->type == Notify::DeleteNotify)
1812 {
1813 SimObject *obj = (SimObject *) note->ptr;
1814 Notify *cnote = obj->removeNotify((void *)this, Notify::ClearNotify);
1815 obj->onDeleteNotify(this);
1816 freeNotify(cnote);
1817 }
1818 else
1819 {
1820 // it must be an object ref - a pointer refs this object
1821 *((SimObject **) note->ptr) = NULL;
1822 }
1823 freeNotify(note);
1824 }
1825}
1826
1827//-----------------------------------------------------------------------------
1828

Callers

nothing calls this directly

Calls 2

removeNotifyMethod · 0.80
onDeleteNotifyMethod · 0.45

Tested by

no test coverage detected