def set_checked

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

import bendvy-ecs-core@0.1.0.3/entity_allocator.bend as EntityAllocator
import Base
import entity_key.bend as K

67def set_checked(phase:Phase,+key:K.Key,observed:Allocator & Bool) -> Allocator & Bool:
68  match observed:
69    case (allocator,False{}):(allocator,False{})
70    case (allocator,True{}):(write_phase(allocator,key,phase),True{})

Uses (7)

Used by (1)