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