def selection_aux

bendvy-ecs-core@0.1.0.4 · query.bend:26

import bendvy-ecs-core@0.1.0.4/query.bend as Query
import Base
import component.bend as Cmp

26def selection_aux(~V: Data,mode: Selection,value: Cmp.Access<V>) -> Bool:
27  match mode value:
28    case Required{} Cmp.Found{_}: True{}
29    case Present{} Cmp.Found{_}: True{}
30    case Absent{} Cmp.ComponentAbsent{}: True{}
31    case Optional{} Cmp.Found{_}: True{}
32    case Optional{} Cmp.ComponentAbsent{}: True{}
33    case _ _: False{}

Uses (3)

Used by (2)