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

Method unit_destroyed_callback

src/world/scene_graph.cpp:107–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107void SceneGraph::unit_destroyed_callback(UnitId unit)
108{
109 TransformId inst = instance(unit);
110 if (is_valid(inst))
111 destroy(inst);
112}
113
114void SceneGraph::create_instances(const void *components_data
115 , u32 num

Callers 1

Calls 2

instanceFunction · 0.85
destroyFunction · 0.70

Tested by

no test coverage detected