def selector

bendvy-ecs-core@0.1.0.4 · recognized_query_declaration.bend:37

import bendvy-ecs-core@0.1.0.4/recognized_query_declaration.bend as RecognizedQueryDeclaration
import Base
import bendvy-ecs-core@0.1.0.4/internal/compact_operational_frame.bend as F

37# Advanced runner projection: consume the declaration and obtain its row filter.
38# The filter returns the updated frame even when the row does not match. This
39# operation does not enumerate entities or grant access beyond the declaration.
40def selector(~S:Data,~Store:Type,~R:Type,~E:Data,~Ops:Type -> Type,declaration:Declaration<S,Store,R,E,Ops>) -> F.Frame<S,Store,R,E> -> F.Frame<S,Store,R,E> & Bool:
41  match declaration:
42    case Declaration{_,_,select}:select

Uses (4)

Used by (3)