def restore_state

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

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

502def restore_state(~S:Data,~C:Type,+id:U32,stamp:L.Stamp,state:State<S,C>) -> Column<S,C>:
503  match state:
504    case State{values,stamps,capacity,current,owner,remaining,past}: Prepared{Owned{State{values,L.set(stamps,id,stamp),capacity,current,owner,remaining,past}}}

Uses (6)

Used by (1)