def put
bendvy-ecs-core@0.1.0.4 · machine_world.bend:24
import bendvy-ecs-core@0.1.0.4/machine_world.bend as MachineWorld
import Base
import machine.bend as M
import world.bend as W
24def put(~S: Data,~K: Data,~V: Data,~C: Type,~R: Type,~E: Data,
25 ~put_resource: R -> M.Slot<S,K,V> -> R,world: W.World<S,C,R,E>,slot: M.Slot<S,K,V>) -> W.World<S,C,R,E>:
26 match world:
27 case W.World{ns,allocator,store,resources,events,commands,registrations,nextSystem,clock}:
28 W.World{ns,allocator,store,put_resource(resources,slot),events,commands,registrations,nextSystem,clock}