function update(game: Game, entity: Entity, delta: number) {
let lifespan = game.World.Lifespan[entity];
lifespan.Remaining -= delta;
if (lifespan.Remaining < 0) {
if (lifespan.Action) {
dispatch(game, lifespan.Action, entity);
}
destroy_all(game.World, entity);
}
}