query.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.6/query.bend as Query
8 imports
import Base import ./trace_facts.bend as TraceFacts import world.bend as W import column.bend as Col import component.bend as Cmp import transaction.bend as T import provider.bend as Pv import commands.bend as Cmd
Types
type Selection source · line 15 · raw
Data
Main membership is required; these modes apply to the independent aux family. Bounded explicit two-family composition is not a general query planner. Auxiliary-family membership in this bounded two-family query. Main membership is always required. Use ordinary/Compose declarations for general heterogeneous query shapes; this helper is not the full query planner.
RequiredSelection
PresentSelection
AbsentSelection
OptionalSelection
Templates
template main_found source · line 21 · raw
@-V:Data -> @value:0x14a72e1c180a5ab1f8a056d43822425c/component.Access<V> -> Bool
template selection_aux source · line 26 · raw
@-V:Data -> @mode:Selection -> @value:0x14a72e1c180a5ab1f8a056d43822425c/component.Access<V> -> Bool
template selected_aux source · line 35 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-V:Data -> @mode:Selection -> @main:Bool -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, 0x14a72e1c180a5ab1f8a056d43822425c/component.Access<V>) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, Bool)
template selected_main source · line 39 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-AuxRest:Type -> @-AuxC:Type -> @-AuxV:Data -> @-AuxToken:Data -> @-aux_take:(@_:Store -> Pair(AuxRest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, AuxC>)) -> @-aux_put:(@_:AuxRest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, AuxC> -> Store) -> @-aux_project:(@_:AuxC -> Pair(AuxC, AuxV)) -> @mode:Selection -> @auxFamily:0x14a72e1c180a5ab1f8a056d43822425c/component.Family<S, Store, AuxRest, AuxC, AuxV, AuxToken, aux_take, aux_put, aux_project> -> @+handle:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, Bool) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, Bool)
template main_join source · line 44 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-V:Data -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, 0x14a72e1c180a5ab1f8a056d43822425c/component.Access<V>) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, Bool)
template selected source · line 48 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Rest:Type -> @-C:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C>)) -> @-put:(@_:Rest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C> -> Store) -> @-project:(@_:C -> Pair(C, V)) -> @-AuxRest:Type -> @-AuxC:Type -> @-AuxV:Data -> @-AuxToken:Data -> @-aux_take:(@_:Store -> Pair(AuxRest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, AuxC>)) -> @-aux_put:(@_:AuxRest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, AuxC> -> Store) -> @-aux_project:(@_:AuxC -> Pair(AuxC, AuxV)) -> @mainFamily:0x14a72e1c180a5ab1f8a056d43822425c/component.Family<S, Store, Rest, C, V, Token, take, put, project> -> @auxFamily:0x14a72e1c180a5ab1f8a056d43822425c/component.Family<S, Store, AuxRest, AuxC, AuxV, AuxToken, aux_take, aux_put, aux_project> -> @mode:Selection -> @tx:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E> -> @+handle:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, Bool)
template main_name source · line 52 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Rest:Type -> @-C:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C>)) -> @-put:(@_:Rest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C> -> Store) -> @-project:(@_:C -> Pair(C, V)) -> @family:0x14a72e1c180a5ab1f8a056d43822425c/component.Family<S, Store, Rest, C, V, Token, take, put, project> -> String
Name helpers only carry diagnostic metadata, not capability authority.
template aux_name source · line 55 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-AuxRest:Type -> @-AuxC:Type -> @-AuxV:Data -> @-AuxToken:Data -> @-aux_take:(@_:Store -> Pair(AuxRest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, AuxC>)) -> @-aux_put:(@_:AuxRest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, AuxC> -> Store) -> @-aux_project:(@_:AuxC -> Pair(AuxC, AuxV)) -> @family:0x14a72e1c180a5ab1f8a056d43822425c/component.Family<S, Store, AuxRest, AuxC, AuxV, AuxToken, aux_take, aux_put, aux_project> -> String
template after_run source · line 59 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-U:Data -> @next:(@_:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, 0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/provider.Error<U>>)) -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, 0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/provider.Error<U>>) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, 0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/provider.Error<U>>)
template run_selected source · line 64 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Rest:Type -> @-C:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C>)) -> @-put:(@_:Rest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C> -> Store) -> @-project:(@_:C -> Pair(C, V)) -> @-AuxRest:Type -> @-AuxC:Type -> @-AuxV:Data -> @-AuxToken:Data -> @-aux_take:(@_:Store -> Pair(AuxRest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, AuxC>)) -> @-aux_put:(@_:AuxRest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, AuxC> -> Store) -> @-aux_project:(@_:AuxC -> Pair(AuxC, AuxV)) -> @-RV:Data -> @-resource_project:(@_:R -> Pair(R, RV)) -> @-Payload:Type -> @-populate:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @_:Payload -> 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>) -> @-clear:(@_:Store -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Store) -> @-A:Data -> @-U:Data -> @-body:(@-H:Type -> @-get:(@_:H -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/component.Access<V>)) -> @-set:(@_:H -> @_:C -> H) -> @-aux:(@_:H -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/component.Access<AuxV>)) -> @-resource_get:(@_:H -> Pair(H, RV)) -> @-resource_set:(@_:H -> @_:R -> H) -> @-emit:(@_:H -> @_:E -> H) -> @-despawn:(@_:H -> H) -> @-spawn:(@_:H -> @_:Payload -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/world.Reservation<S>)) -> @_:A -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @_:H -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<U>)) -> @+mainName:String -> @+auxName:String -> @+handle:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @args:A -> @next:(@_:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, 0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/provider.Error<U>>)) -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, Bool) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, 0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/provider.Error<U>>)
template run_handles source · line 69 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Rest:Type -> @-C:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C>)) -> @-put:(@_:Rest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C> -> Store) -> @-project:(@_:C -> Pair(C, V)) -> @-AuxRest:Type -> @-AuxC:Type -> @-AuxV:Data -> @-AuxToken:Data -> @-aux_take:(@_:Store -> Pair(AuxRest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, AuxC>)) -> @-aux_put:(@_:AuxRest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, AuxC> -> Store) -> @-aux_project:(@_:AuxC -> Pair(AuxC, AuxV)) -> @-RV:Data -> @-resource_project:(@_:R -> Pair(R, RV)) -> @-Payload:Type -> @-populate:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @_:Payload -> 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>) -> @-clear:(@_:Store -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Store) -> @-A:Data -> @-U:Data -> @-body:(@-H:Type -> @-get:(@_:H -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/component.Access<V>)) -> @-set:(@_:H -> @_:C -> H) -> @-aux:(@_:H -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/component.Access<AuxV>)) -> @-resource_get:(@_:H -> Pair(H, RV)) -> @-resource_set:(@_:H -> @_:R -> H) -> @-emit:(@_:H -> @_:E -> H) -> @-despawn:(@_:H -> H) -> @-spawn:(@_:H -> @_:Payload -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/world.Reservation<S>)) -> @_:A -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @_:H -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<U>)) -> @handles:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S>> -> @+mainFamily:0x14a72e1c180a5ab1f8a056d43822425c/component.Family<S, Store, Rest, C, V, Token, take, put, project> -> @+auxFamily:0x14a72e1c180a5ab1f8a056d43822425c/component.Family<S, Store, AuxRest, AuxC, AuxV, AuxToken, aux_take, aux_put, aux_project> -> @+mode:Selection -> @+args:A -> @tx:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, 0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/provider.Error<U>>)
template finished source · line 75 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-U:Data -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, 0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/provider.Error<U>>) -> 0x14a72e1c180a5ab1f8a056d43822425c/transaction.Returned<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/provider.Error<U>>
template each_reserved source · line 79 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Rest:Type -> @-C:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C>)) -> @-put:(@_:Rest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C> -> Store) -> @-project:(@_:C -> Pair(C, V)) -> @-AuxRest:Type -> @-AuxC:Type -> @-AuxV:Data -> @-AuxToken:Data -> @-aux_take:(@_:Store -> Pair(AuxRest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, AuxC>)) -> @-aux_put:(@_:AuxRest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, AuxC> -> Store) -> @-aux_project:(@_:AuxC -> Pair(AuxC, AuxV)) -> @-RV:Data -> @-resource_project:(@_:R -> Pair(R, RV)) -> @-Payload:Type -> @-populate:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @_:Payload -> 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>) -> @-clear:(@_:Store -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Store) -> @-A:Data -> @-U:Data -> @-body:(@-H:Type -> @-get:(@_:H -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/component.Access<V>)) -> @-set:(@_:H -> @_:C -> H) -> @-aux:(@_:H -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/component.Access<AuxV>)) -> @-resource_get:(@_:H -> Pair(H, RV)) -> @-resource_set:(@_:H -> @_:R -> H) -> @-emit:(@_:H -> @_:E -> H) -> @-despawn:(@_:H -> H) -> @-spawn:(@_:H -> @_:Payload -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/world.Reservation<S>)) -> @_:A -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @_:H -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<U>)) -> @mainFamily:0x14a72e1c180a5ab1f8a056d43822425c/component.Family<S, Store, Rest, C, V, Token, take, put, project> -> @auxFamily:0x14a72e1c180a5ab1f8a056d43822425c/component.Family<S, Store, AuxRest, AuxC, AuxV, AuxToken, aux_take, aux_put, aux_project> -> @mode:Selection -> @args:A -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S>>) -> 0x14a72e1c180a5ab1f8a056d43822425c/transaction.Returned<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/provider.Error<U>>
template each_rw_read source · line 88 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Rest:Type -> @-C:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C>)) -> @-put:(@_:Rest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C> -> Store) -> @-project:(@_:C -> Pair(C, V)) -> @-AuxRest:Type -> @-AuxC:Type -> @-AuxV:Data -> @-AuxToken:Data -> @-aux_take:(@_:Store -> Pair(AuxRest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, AuxC>)) -> @-aux_put:(@_:AuxRest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, AuxC> -> Store) -> @-aux_project:(@_:AuxC -> Pair(AuxC, AuxV)) -> @-RV:Data -> @-resource_project:(@_:R -> Pair(R, RV)) -> @-Payload:Type -> @-populate:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @_:Payload -> 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>) -> @-clear:(@_:Store -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Store) -> @-A:Data -> @-U:Data -> @-body:(@-H:Type -> @-get:(@_:H -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/component.Access<V>)) -> @-set:(@_:H -> @_:C -> H) -> @-aux:(@_:H -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/component.Access<AuxV>)) -> @-resource_get:(@_:H -> Pair(H, RV)) -> @-resource_set:(@_:H -> @_:R -> H) -> @-emit:(@_:H -> @_:E -> H) -> @-despawn:(@_:H -> H) -> @-spawn:(@_:H -> @_:Payload -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/world.Reservation<S>)) -> @_:A -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @_:H -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<U>)) -> @mainFamily:0x14a72e1c180a5ab1f8a056d43822425c/component.Family<S, Store, Rest, C, V, Token, take, put, project> -> @auxFamily:0x14a72e1c180a5ab1f8a056d43822425c/component.Family<S, Store, AuxRest, AuxC, AuxV, AuxToken, aux_take, aux_put, aux_project> -> @mode:Selection -> @world:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E> -> @args:A -> 0x14a72e1c180a5ab1f8a056d43822425c/transaction.Returned<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/provider.Error<U>>
Traverse a snapshot of live handles with required main and selected aux membership, invoking the declared provider body within one transaction. Failure rolls back that traversal's recorded writes/publications; commands remain deferred until an explicit barrier. Families/lenses are trusted setup. Prefer ordinary declarations for application-derived registration/access.
template read_prepend source · line 92 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Out:Data -> @value:Out -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, List<&2, Out>) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, List<&2, Out>)
Read-only gameplay receives no component/resource setter, event writer or command.
template read_added source · line 96 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Out:Data -> @next:(@_:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, List<&2, Out>)) -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, Out) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, List<&2, Out>)
template read_selected source · line 99 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Rest:Type -> @-C:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C>)) -> @-put:(@_:Rest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C> -> Store) -> @-project:(@_:C -> Pair(C, V)) -> @-AuxRest:Type -> @-AuxC:Type -> @-AuxV:Data -> @-AuxToken:Data -> @-aux_take:(@_:Store -> Pair(AuxRest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, AuxC>)) -> @-aux_put:(@_:AuxRest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, AuxC> -> Store) -> @-aux_project:(@_:AuxC -> Pair(AuxC, AuxV)) -> @-RV:Data -> @-resource_project:(@_:R -> Pair(R, RV)) -> @-Payload:Type -> @-populate:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @_:Payload -> 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>) -> @-clear:(@_:Store -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Store) -> @-A:Data -> @-Out:Data -> @-body:(@-H:Type -> @-get:(@_:H -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/component.Access<V>)) -> @-aux:(@_:H -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/component.Access<AuxV>)) -> @-resource_get:(@_:H -> Pair(H, RV)) -> @_:A -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @_:H -> Pair(H, Out)) -> @+mainName:String -> @+auxName:String -> @+handle:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @args:A -> @next:(@_:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, List<&2, Out>)) -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, Bool) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, List<&2, Out>)
template read_handles source · line 104 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Rest:Type -> @-C:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C>)) -> @-put:(@_:Rest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C> -> Store) -> @-project:(@_:C -> Pair(C, V)) -> @-AuxRest:Type -> @-AuxC:Type -> @-AuxV:Data -> @-AuxToken:Data -> @-aux_take:(@_:Store -> Pair(AuxRest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, AuxC>)) -> @-aux_put:(@_:AuxRest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, AuxC> -> Store) -> @-aux_project:(@_:AuxC -> Pair(AuxC, AuxV)) -> @-RV:Data -> @-resource_project:(@_:R -> Pair(R, RV)) -> @-Payload:Type -> @-populate:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @_:Payload -> 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>) -> @-clear:(@_:Store -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Store) -> @-A:Data -> @-Out:Data -> @-body:(@-H:Type -> @-get:(@_:H -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/component.Access<V>)) -> @-aux:(@_:H -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/component.Access<AuxV>)) -> @-resource_get:(@_:H -> Pair(H, RV)) -> @_:A -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @_:H -> Pair(H, Out)) -> @handles:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S>> -> @+mainFamily:0x14a72e1c180a5ab1f8a056d43822425c/component.Family<S, Store, Rest, C, V, Token, take, put, project> -> @+auxFamily:0x14a72e1c180a5ab1f8a056d43822425c/component.Family<S, Store, AuxRest, AuxC, AuxV, AuxToken, aux_take, aux_put, aux_project> -> @+mode:Selection -> @+args:A -> @tx:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, List<&2, Out>)
template read_world source · line 110 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Out:Data -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, List<&2, Out>) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, List<&2, Out>)
template read_reserved source · line 114 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Rest:Type -> @-C:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C>)) -> @-put:(@_:Rest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C> -> Store) -> @-project:(@_:C -> Pair(C, V)) -> @-AuxRest:Type -> @-AuxC:Type -> @-AuxV:Data -> @-AuxToken:Data -> @-aux_take:(@_:Store -> Pair(AuxRest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, AuxC>)) -> @-aux_put:(@_:AuxRest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, AuxC> -> Store) -> @-aux_project:(@_:AuxC -> Pair(AuxC, AuxV)) -> @-RV:Data -> @-resource_project:(@_:R -> Pair(R, RV)) -> @-Payload:Type -> @-populate:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @_:Payload -> 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>) -> @-clear:(@_:Store -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Store) -> @-A:Data -> @-Out:Data -> @-body:(@-H:Type -> @-get:(@_:H -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/component.Access<V>)) -> @-aux:(@_:H -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/component.Access<AuxV>)) -> @-resource_get:(@_:H -> Pair(H, RV)) -> @_:A -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @_:H -> Pair(H, Out)) -> @mainFamily:0x14a72e1c180a5ab1f8a056d43822425c/component.Family<S, Store, Rest, C, V, Token, take, put, project> -> @auxFamily:0x14a72e1c180a5ab1f8a056d43822425c/component.Family<S, Store, AuxRest, AuxC, AuxV, AuxToken, aux_take, aux_put, aux_project> -> @mode:Selection -> @args:A -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S>>) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, List<&2, Out>)
template each_read source · line 122 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Rest:Type -> @-C:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C>)) -> @-put:(@_:Rest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C> -> Store) -> @-project:(@_:C -> Pair(C, V)) -> @-AuxRest:Type -> @-AuxC:Type -> @-AuxV:Data -> @-AuxToken:Data -> @-aux_take:(@_:Store -> Pair(AuxRest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, AuxC>)) -> @-aux_put:(@_:AuxRest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, AuxC> -> Store) -> @-aux_project:(@_:AuxC -> Pair(AuxC, AuxV)) -> @-RV:Data -> @-resource_project:(@_:R -> Pair(R, RV)) -> @-Payload:Type -> @-populate:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @_:Payload -> 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>) -> @-clear:(@_:Store -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Store) -> @-A:Data -> @-Out:Data -> @-body:(@-H:Type -> @-get:(@_:H -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/component.Access<V>)) -> @-aux:(@_:H -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/component.Access<AuxV>)) -> @-resource_get:(@_:H -> Pair(H, RV)) -> @_:A -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @_:H -> Pair(H, Out)) -> @mainFamily:0x14a72e1c180a5ab1f8a056d43822425c/component.Family<S, Store, Rest, C, V, Token, take, put, project> -> @auxFamily:0x14a72e1c180a5ab1f8a056d43822425c/component.Family<S, Store, AuxRest, AuxC, AuxV, AuxToken, aux_take, aux_put, aux_project> -> @mode:Selection -> @world:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E> -> @args:A -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, List<&2, Out>)
Read-only bounded two-family traversal returning World and ordered Data row outputs. Body receives no setter, publisher or structural command grant. Main is required; mode controls auxiliary membership. Canonical projections preserve affine payloads while exposing Data views; callbacks remain trusted.
template each_rw_read_resource source · line 129 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Rest:Type -> @-C:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C>)) -> @-put:(@_:Rest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C> -> Store) -> @-project:(@_:C -> Pair(C, V)) -> @-AuxRest:Type -> @-AuxC:Type -> @-AuxV:Data -> @-AuxToken:Data -> @-aux_take:(@_:Store -> Pair(AuxRest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, AuxC>)) -> @-aux_put:(@_:AuxRest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, AuxC> -> Store) -> @-aux_project:(@_:AuxC -> Pair(AuxC, AuxV)) -> @-RV:Data -> @-resource_project:(@_:R -> Pair(R, RV)) -> @-Payload:Type -> @-populate:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @_:Payload -> 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>) -> @-clear:(@_:Store -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Store) -> @-A:Data -> @-U:Data -> @-body:(@-H:Type -> @-get:(@_:H -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/component.Access<V>)) -> @-set:(@_:H -> @_:C -> H) -> @-aux:(@_:H -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/component.Access<AuxV>)) -> @-resource_get:(@_:H -> Pair(H, RV)) -> @_:A -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @_:H -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<U>)) -> @mainFamily:0x14a72e1c180a5ab1f8a056d43822425c/component.Family<S, Store, Rest, C, V, Token, take, put, project> -> @auxFamily:0x14a72e1c180a5ab1f8a056d43822425c/component.Family<S, Store, AuxRest, AuxC, AuxV, AuxToken, aux_take, aux_put, aux_project> -> @mode:Selection -> @world:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E> -> @args:A -> 0x14a72e1c180a5ab1f8a056d43822425c/transaction.Returned<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/provider.Error<U>>
Main RW + aux Read + resource Read, with no other user capability grant. Bounded query granting main component read/write, aux component read and resource read, without other gameplay operations. Uses the same transaction and deferred-visibility rules as each_rw_read; raw setup stays trusted.
template each_rw_read_events source · line 137 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Rest:Type -> @-C:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C>)) -> @-put:(@_:Rest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C> -> Store) -> @-project:(@_:C -> Pair(C, V)) -> @-AuxRest:Type -> @-AuxC:Type -> @-AuxV:Data -> @-AuxToken:Data -> @-aux_take:(@_:Store -> Pair(AuxRest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, AuxC>)) -> @-aux_put:(@_:AuxRest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, AuxC> -> Store) -> @-aux_project:(@_:AuxC -> Pair(AuxC, AuxV)) -> @-RV:Data -> @-resource_project:(@_:R -> Pair(R, RV)) -> @-Payload:Type -> @-populate:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @_:Payload -> 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>) -> @-clear:(@_:Store -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Store) -> @-A:Data -> @-U:Data -> @-body:(@-H:Type -> @-get:(@_:H -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/component.Access<V>)) -> @-set:(@_:H -> @_:C -> H) -> @-aux:(@_:H -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/component.Access<AuxV>)) -> @-emit:(@_:H -> @_:E -> H) -> @-despawn:(@_:H -> H) -> @_:A -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @_:H -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<U>)) -> @mainFamily:0x14a72e1c180a5ab1f8a056d43822425c/component.Family<S, Store, Rest, C, V, Token, take, put, project> -> @auxFamily:0x14a72e1c180a5ab1f8a056d43822425c/component.Family<S, Store, AuxRest, AuxC, AuxV, AuxToken, aux_take, aux_put, aux_project> -> @mode:Selection -> @world:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E> -> @args:A -> 0x14a72e1c180a5ab1f8a056d43822425c/transaction.Returned<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/provider.Error<U>>
Resource capabilities and spawn are absent from this callback contract. Bounded query granting component operations, declared event publication and deferred despawn, without resource or spawn capabilities. Failure suppresses its staged publications; no deferred command barrier is implied. Broader compositions use ordinary-query-declaration/observable or Compose.