def write_phase

bendvy-ecs-core@0.1.0.3 · entity_allocator.bend:64

import bendvy-ecs-core@0.1.0.3/entity_allocator.bend as EntityAllocator
import 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)