def dispatch_selected
bendvy-ecs-core@0.1.0.3 · execution_generalized_system_leaf.bend:29
import bendvy-ecs-core@0.1.0.3/execution_generalized_system_leaf.bend as ExecutionGeneralizedSystemLeaf
import Base
import bendvy-ecs-core@0.1.0.3/execution_composer_layout.bend as L
import bendvy-ecs-core@0.1.0.3/execution_builder.bend as Build
import bendvy-ecs-core@0.1.0.3/execution_declaration.bend as D
import bendvy-ecs-core@0.1.0.3/execution_system.bend as Sys
import bendvy-ecs-core@0.1.0.3/dependency_executor.bend as Exec
import bendvy-ecs-core@0.1.0.3/world.bend as W
29def dispatch_selected(~S:Data,~components:L.Layout,~resources:L.Layout,~E:Data,~Ops:Data -> (Type -> Type) -> Type -> Type,~Local:Type,~Error:Data,~Out:Data,~declaration:Build.FrameworkProgram(~S,~L.columns(~S,components),~L.columns(~S,components),~L.resources(~S,resources),~Ops),~body:Sys.Body(~S,~Ops,~Local,~Error,~Out),~construction:D.Compilation<S,L.columns(~S,components),L.columns(~S,components),L.resources(~S,resources),Ops>,node:Node(~S,~components,~resources,~E,~Ops,~Local,~Error,~Out,~declaration,~body),world:W.World<S,L.columns(~S,components),L.resources(~S,resources),E>,selected:Bool) -> Node(~S,~components,~resources,~E,~Ops,~Local,~Error,~Out,~declaration,~body) & (W.World<S,L.columns(~S,components),L.resources(~S,resources),E> & Exec.Invocation<Error,Out>):
30 match selected:
31 case False{}:(node,(world,Exec.AdmissionRefused{}))
32 case True{}:run(~S,~components,~resources,~E,~Ops,~Local,~Error,~Out,~declaration,~body,~construction,node,world)