def deactivate

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

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

171# Opaque storage is retained; this operation cannot make its slot reusable.
172# Mark a metadata-valid entity DeadRetained, returning Status and World. Payloads
173# remain in storage; schema cleanup must precede slot release/reuse.
174def deactivate(~S:Data,~C:Type,~R:Type,~E:Data,world:World<S,C,R,E>,+handle:Handle<S>) -> World<S,C,R,E> & Status:
175  phase_checked(~S,~C,~R,~E,A.DeadRetained{},handle_key(~S,handle),metadata_valid(~S,~C,~R,~E,world,handle))

Uses (8)

Used by (0)

No other definition uses this definition.