Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
423
void 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
unit_destroyed_callback_bridge
Function · 0.45
Calls
2
instance
Function · 0.85
destroy
Function · 0.70
Tested by
no test coverage detected