def despawn_apply_observed

bendvy-ecs-core@0.1.0.4 · commands.bend:159

import bendvy-ecs-core@0.1.0.4/commands.bend as Commands
import Base
import bendvy-ecs-core@0.1.0.4/world.bend as W

159# Apply checked live-entity cleanup, publishing its component removal records
160# followed by the entity record only after accepted deactivation. Invalid handles
161# leave World unchanged and skip cleanup/publication.
162def despawn_apply_observed(~S: Data,~C: Type,~R: Type,~E: Data,~clear: C -> W.Handle<S> -> C & List<&2,E>,~record: W.Handle<S> -> E,world: W.World<S,C,R,E>,+handle: W.Handle<S>) -> W.World<S,C,R,E>:
163  despawn_valid_observed(~S,~C,~R,~E,~clear,~record,W.valid(~S,~C,~R,~E,world,handle),handle)

Uses (6)

Used by (1)