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

Method unit_destroyed_callback

src/world/animation_state_machine.cpp:423–428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421}
422
423void AnimationStateMachine::unit_destroyed_callback(UnitId unit)
424{
425 StateMachineId inst = instance(unit);
426 if (is_valid(inst))
427 destroy(inst);
428}
429
430} // namespace crown

Callers 1

Calls 2

instanceFunction · 0.85
destroyFunction · 0.70

Tested by

no test coverage detected