def mark_pending

bendvy-ecs-core@0.1.0.3 · world.bend:179

import bendvy-ecs-core@0.1.0.3/world.bend as World
import Base
import entity_allocator.bend as A

179# Structural bookkeeping for an actually staged spawn. Metadata validation gates
180# the phase update; this helper alone does not enqueue or populate an entity.
181def mark_pending(~S:Data,~C:Type,~R:Type,~E:Data,world:World<S,C,R,E>,+handle:Handle<S>) -> World<S,C,R,E>:
182  discard_status(~S,~C,~R,~E,phase_checked(~S,~C,~R,~E,A.Pending{},handle_key(~S,handle),metadata_valid(~S,~C,~R,~E,world,handle)))

Uses (7)

Used by (1)