def floor_finish

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

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

135# A file may advance fresh-index progress, never replace generations or owners.
136def floor_finish(+floor:U32,allocator:Allocator) -> Allocator:
137  match allocator:
138    case Allocator{next,high,slots,capacity,depth,free,order}:Allocator{U32.max(next,floor),U32.max(high,U32.sub(floor,1)),slots,capacity,depth,free,order}

Uses (4)

Used by (2)