def write_phase
import bendvy-ecs-core@0.1.0.3/entity_allocator.bend as EntityAllocatorimport Base
import entity_key.bend as K
64def write_phase(allocator:Allocator,+key:K.Key,phase:Phase) -> Allocator:
65 match allocator:
66 case Allocator{next,high,slots,capacity,depth,free,order}:Allocator{next,high,Array.set(Slot,slots,K.index(key),phase_slot(key,phase)),capacity,depth,free,order}
Uses (7)
Used by (5)
- bendvy-ecs-core@0.1.0.3/world:phase_checked
- bendvy-ecs-core@0.1.0.3/entity_allocator:abandon_pending_checked
- bendvy-ecs-core@0.1.0.3/entity_allocator:set_checked
- bendvy-ecs-core@0.1.0.3/execution_command_publication:despawn_returned
- bendvy-ecs-core@0.1.0.3/execution_reservation_materialization:installed