def resolved

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

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

48def resolved(~S:Data,~V:Data,selection:Q.Selection,+target:W.Handle<S>,value:I.Value<V>) -> Result<&2,&2,LookupError,Q.Row<S,V>>:
49  match target value:
50    case W.Handle{_,id} I.Value{C.MissingEntity{},_,_}:Fail{MissingEntity{id}}
51    case target +value:selected(~S,~V,Q.accepts(~V,selection,value),target,value)

Uses (9)

Used by (1)