def dispatch_unpacked

bendvy-ecs-core@0.1.0.3 · execution_generalized_system_leaf.bend:33

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/execution_retained_system.bend as Retained
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

33def dispatch_unpacked(~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:D.Compilation<S,L.columns(~S,components),L.columns(~S,components),L.resources(~S,resources),Ops> & Sys.Owner<S,L.columns(~S,components),L.columns(~S,components),L.resources(~S,resources),E,Ops,Local,Error,Out,declaration,body>,world:W.World<S,L.columns(~S,components),L.resources(~S,resources),E>,id:U32) -> 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>):
34  match node:
35    case (compilation,Sys.Owner{namespace,+actual,name,access,cursor,local}):dispatch_selected(~S,~components,~resources,~E,~Ops,~Local,~Error,~Out,~declaration,~body,~construction,Retained.pack(D.Compilation<S,L.columns(~S,components),L.columns(~S,components),L.resources(~S,resources),Ops>,Sys.Owner<S,L.columns(~S,components),L.columns(~S,components),L.resources(~S,resources),E,Ops,Local,Error,Out,declaration,body>,compilation,Sys.Owner{namespace,actual,name,access,cursor,local}),world,U32.is_eq(actual,id))

Uses (16)

Used by (1)