Examples
import { ComponentHooks, World } from '@wimaengine/ecs'
import { AnimationPlayer, dropAnimationPlayer } from '@wimaengine/animation'
const world = new World()
world.setComponentHooks(
AnimationPlayer,
new ComponentHooks(null, dropAnimationPlayer)
)
const entity = world.spawn([new AnimationPlayer()])
world.remove(entity, [AnimationPlayer])
// Removing the component also releases its retained handles.