def apply
bendvy-ecs-core@0.1.0.3 · execution_lifetime_scope_store.bend:78
import bendvy-ecs-core@0.1.0.3/execution_lifetime_scope_store.bend as ExecutionLifetimeScopeStore
import Base
import bendvy-ecs-core@0.1.0.3/world.bend as W
import bendvy-ecs-core@0.1.0.3/entity_allocator.bend as Allocator
78def apply(~S:Data,+actual:U32,allocator:Allocator.Allocator,store:Store<S>,request:Request<S>) -> Allocator.Allocator & (Store<S> & Outcome<S>):
79 match request:
80 case Inspect{}:inspected(~S,allocator,store)
81 case Assign{scope,handle}:assignment_returned(~S,assign(~S,actual,allocator,store,scope,handle))
82 case Select{scope}:selection_returned(~S,allocator,snapshot(~S,actual,store,scope))
83 case Forget{W.Handle{+namespace,+key}}:forget_namespace(~S,actual,allocator,store,W.Handle{namespace,key},namespace)