def lifecycle_state

bendvy-ecs-core@0.1.0.3 · column.bend:484

import bendvy-ecs-core@0.1.0.3/column.bend as Column
import Base
import lifecycle.bend as L

484# Raw owner swaps/projection are metadata-neutral. Only the component world
485# write seam advances stamps, and rollback restores a saved stamp explicitly.
486def lifecycle_state(~S:Data,~C:Type,+id:U32,state:State<S,C>) -> Column<S,C> & L.Stamp:
487  match state:
488    case State{values,+stamps,capacity,current,owner,remaining,past}: (Prepared{Owned{State{values,stamps,capacity,current,owner,remaining,past}}},L.get(stamps,id))

Uses (8)

Used by (1)