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

Method clearAllNotifications

Engine/source/console/simObject.cpp:1829–1845  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1827//-----------------------------------------------------------------------------
1828
1829void SimObject::clearAllNotifications()
1830{
1831 for(Notify **cnote = &mNotifyList; *cnote; )
1832 {
1833 Notify *temp = *cnote;
1834 if(temp->type == Notify::ClearNotify)
1835 {
1836 *cnote = temp->next;
1837 Notify *note = ((SimObject *) temp->ptr)->removeNotify((void *) this, Notify::DeleteNotify);
1838 freeNotify(temp);
1839 if ( note )
1840 freeNotify(note);
1841 }
1842 else
1843 cnote = &(temp->next);
1844 }
1845}
1846
1847//=============================================================================
1848// Namespaces.

Callers

nothing calls this directly

Calls 1

removeNotifyMethod · 0.80

Tested by

no test coverage detected