def selected_aux
import bendvy-ecs-core@0.1.0.4/query.bend as Queryimport Base
import world.bend as W
import component.bend as Cmp
import transaction.bend as T
35def selected_aux(~S: Data,~Store: Type,~R: Type,~E: Data,~V: Data,mode: Selection,main: Bool,observed: T.Tx<W.World<S,Store,R,E>,E> & Cmp.Access<V>) -> T.Tx<W.World<S,Store,R,E>,E> & Bool:
36 (tx,value) = observed
37 (tx,main && selection_aux(~V,mode,value))