def composed_runtime_scan_matched

bendvy-ecs-core@0.1.0.4 · inspector_query.bend:241

import bendvy-ecs-core@0.1.0.4/inspector_query.bend as InspectorQuery
import Base
import inspector_query_projection.bend as Q
import world.bend as W

241def composed_runtime_scan_matched(~H:Type,~S:Data,~A:Data,~B:Data,~Arg:Data,~component:Q.DeclaredSelection<H,S,A>,~relation_matches:Arg -> H -> W.Handle<S> -> H & Bool,~relation_project:Arg -> H -> W.Handle<S> -> H & B,+target:W.Handle<S>,rows:List<&2,ProjectedRow<S,Q.Product<A,B>>>,continue:H -> List<&2,ProjectedRow<S,Q.Product<A,B>>> -> ScanResult<H,S,Q.Product<A,B>>,argument:Arg,observed:H & Bool) -> ScanResult<H,S,Q.Product<A,B>>:
242  match observed:
243    case (owner,False{}):continue(owner,rows)
244    case (owner,True{}):composed_runtime_scan_projected(~H,~S,~A,~B,target,rows,continue,composed_runtime_project(~H,~S,~A,~B,~Arg,~component,~relation_project,target,argument,owner))

Uses (11)

Used by (1)