MCPcopy Create free account
hub / github.com/crownengine/crown / trigger_destroy_callbacks

Method trigger_destroy_callbacks

src/world/unit_manager.cpp:70–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void UnitManager::trigger_destroy_callbacks(UnitId unit)
71{
72 ListNode *cur;
73 list_for_each(cur, &_callbacks.node)
74 {
75 UnitDestroyCallback *udc = (UnitDestroyCallback *)container_of(cur, UnitDestroyCallback, node);
76 udc->destroy(unit, udc->user_data);
77 }
78}
79
80} // namespace crown

Callers 1

reload_unitsMethod · 0.80

Calls 1

destroyMethod · 0.45

Tested by

no test coverage detected