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# Trusted storage adapter threading actual C and returning Out with World. This is
347# not a gameplay capability or a universal guarantee that effect preserves storage.
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)

Uses (3)

Used by (23)