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

Function unit_destroyed_callback

src/world/script_world.cpp:27–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 }
26
27 static void unit_destroyed_callback(ScriptWorld &sw, UnitId unit)
28 {
29 ScriptId inst = script_world::instance(sw, unit);
30 if (is_valid(inst))
31 script_world::destroy(sw, inst);
32 }
33
34 static void unit_destroyed_callback_bridge(UnitId unit, void *user_ptr)
35 {

Callers 1

Calls 2

instanceFunction · 0.85
destroyFunction · 0.70

Tested by

no test coverage detected