def tx_set

bendvy-ecs-core@0.1.0.4 · resource_field.bend:36

import bendvy-ecs-core@0.1.0.4/resource_field.bend as ResourceField
import Base
import bendvy-ecs-core@0.1.0.4/owner_product.bend as Product
import bendvy-ecs-core@0.1.0.4/world.bend as W
import bendvy-ecs-core@0.1.0.4/transaction.bend as T

36def tx_set(~S:Data,~C:Type,~R:Type,~E:Data,~P:Type,~Rest:Type,~lens:Product.Lens<R,P,Rest>,tx:T.Tx<W.World<S,C,R,E>,E>,replacement:P) -> T.Tx<W.World<S,C,R,E>,E>:
37  match tx:
38    case T.Tx{world,undo,commands,events,trace}:journaled(~S,~C,~R,~E,~P,~Rest,~lens,undo,commands,events,trace,replace_world(~S,~C,~R,~E,~P,~Rest,~lens,replacement,world))

Uses (5)

Used by (5)