def with_store
bendvy-ecs-core@0.1.0.3 · world.bend:348
import bendvy-ecs-core@0.1.0.3/world.bend as World
import Base
348
349
350def with_store(~S: Data,~C: Type,~R: Type,~E: Data,~Out: Type,effect: C -> C & Out,world: World<S,C,R,E>) -> World<S,C,R,E> & Out:
351 match world:
352 case World{+namespace,allocator,store,resource,+events,pending,+registrations,+nextSystemId,+clock,lifecycle}: with_store_finish(~S,~C,~R,~E,~Out,effect(store),namespace,allocator,resource,events,pending,registrations,nextSystemId,clock,lifecycle)