def with_store
bendvy-ecs-core@0.1.0.4 · world.bend:346
import bendvy-ecs-core@0.1.0.4/world.bend as World
import Base
346
347
348def 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:
349 match world:
350 case World{+namespace,allocator,store,resource,+events,pending,+registrations,+nextSystemId,+clock}: with_store_finish(~S,~C,~R,~E,~Out,effect(store),namespace,allocator,resource,events,pending,registrations,nextSystemId,clock)