ordinary_app_composer.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.7/ordinary_app_composer.bend as Ordinary_app_composer
6 imports
import ./ordinary_app_records.bend as Leaf import Base import ./ordinary_app_registration_fields.bend as Records import ./ordinary_app_description.bend as Description import ./ordinary_app_recipe.bend as Tree import ./ordinary_app_observation_data.bend as DTO
Types
type Registered source · line 10 · raw
@S:Data -> @World:Type -> @Owners:Type -> @Rows:Data -> @-observe:(@_:World -> Pair(World, 0x7e321819d0ff210531780719c7674cef/ordinary_app_observation_data.Observation<Rows>)) -> @-fold:(@_:Owners -> Pair(Owners, List<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_app_registration_fields.Fields<S>>)) -> Type
Affine App carrier retaining actual World, heterogeneous registration owners, observation recipe and debug flag. observe/fold are trusted closed setup adapters; metadata and detached observations do not themselves grant gameplay operations.
Registered@S:Data -> @World:Type -> @Owners:Type -> @Rows:Data -> @-observe:(@_:World -> Pair(World, 0x7e321819d0ff210531780719c7674cef/ordinary_app_observation_data.Observation<Rows>)) -> @-fold:(@_:Owners -> Pair(Owners, List<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_app_registration_fields.Fields<S>>)) -> @world:World -> @owners:Owners -> @recipe:0x7e321819d0ff210531780719c7674cef/ordinary_app_recipe.Recipe<World, Rows, observe> -> @debug:Bool -> Registered<S, World, Owners, Rows, observe, fold>
Templates
template empty_observe source · line 14 · raw
@-World:Type -> @world:World -> Pair(World, 0x7e321819d0ff210531780719c7674cef/ordinary_app_observation_data.Observation<Unit>)
Advanced empty observer returning the actual World with Unit rows and no text. It does not enumerate entities, register readers or apply pending commands.
template empty source · line 18 · raw
@-S:Data -> @-World:Type -> @world:World -> Registered<S, World, Unit, Unit, empty_observe(World), 0x7e321819d0ff210531780719c7674cef/ordinary_app_records.empty(S)>
Start an App with the actual World, Unit registration owner and empty observer. Debug is disabled; this performs no registration or gameplay execution.
template enabled source · line 22 · raw
@-S:Data -> @-World:Type -> @-Owners:Type -> @-Rows:Data -> @-observe:(@_:World -> Pair(World, 0x7e321819d0ff210531780719c7674cef/ordinary_app_observation_data.Observation<Rows>)) -> @-fold:(@_:Owners -> Pair(Owners, List<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_app_registration_fields.Fields<S>>)) -> @app:Registered<S, World, Owners, Rows, observe, fold> -> @flag:Bool -> Registered<S, World, Owners, Rows, observe, fold>
Replace only the observation-enable flag, returning actual World/owners/recipe. Enabling observation does not add gameplay access or execute a system.
template observed source · line 25 · raw
@-S:Data -> @-World:Type -> @-Owners:Type -> @-Rows:Data -> @-observe:(@_:World -> Pair(World, 0x7e321819d0ff210531780719c7674cef/ordinary_app_observation_data.Observation<Rows>)) -> @-fold:(@_:Owners -> Pair(Owners, List<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_app_registration_fields.Fields<S>>)) -> @owners:Owners -> @fields:List<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_app_registration_fields.Fields<S>> -> @result:Pair(World, 0x7e321819d0ff210531780719c7674cef/ordinary_app_observation_data.Observation<Rows>) -> Pair(Registered<S, World, Owners, Rows, observe, fold>, Maybe<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_app_observation_data.Product<List<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_app_observation_data.Binding<S>>, 0x7e321819d0ff210531780719c7674cef/ordinary_app_observation_data.Observation<Rows>>>)
template folded source · line 28 · raw
@-S:Data -> @-World:Type -> @-Owners:Type -> @-Rows:Data -> @-observe:(@_:World -> Pair(World, 0x7e321819d0ff210531780719c7674cef/ordinary_app_observation_data.Observation<Rows>)) -> @-fold:(@_:Owners -> Pair(Owners, List<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_app_registration_fields.Fields<S>>)) -> @world:World -> @result:Pair(Owners, List<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_app_registration_fields.Fields<S>>) -> Pair(Registered<S, World, Owners, Rows, observe, fold>, Maybe<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_app_observation_data.Product<List<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_app_observation_data.Binding<S>>, 0x7e321819d0ff210531780719c7674cef/ordinary_app_observation_data.Observation<Rows>>>)
template snapshot source · line 36 · raw
@-S:Data -> @-World:Type -> @-Owners:Type -> @-Rows:Data -> @-observe:(@_:World -> Pair(World, 0x7e321819d0ff210531780719c7674cef/ordinary_app_observation_data.Observation<Rows>)) -> @-fold:(@_:Owners -> Pair(Owners, List<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_app_registration_fields.Fields<S>>)) -> @app:Registered<S, World, Owners, Rows, observe, fold> -> Pair(Registered<S, World, Owners, Rows, observe, fold>, Maybe<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_app_observation_data.Product<List<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_app_observation_data.Binding<S>>, 0x7e321819d0ff210531780719c7674cef/ordinary_app_observation_data.Observation<Rows>>>)
Return App and optional detached bindings/observation. Disabled returns None before calling fold or observe. Enabled folds registration owners first, then observes World, retaining both returned owners. The callbacks remain trusted; this wrapper is not a universal noninterference proof or a restorable save. See ordinary-app-component.bend and examples/scheduled-health/application.bend.
template appended source · line 43 · raw
@-S:Data -> @-World:Type -> @-Owners:Type -> @-Rows:Data -> @-observe:(@_:World -> Pair(World, 0x7e321819d0ff210531780719c7674cef/ordinary_app_observation_data.Observation<Rows>)) -> @-fold:(@_:Owners -> Pair(Owners, List<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_app_registration_fields.Fields<S>>)) -> @-Leaf:Type -> @-Value:Data -> @-leafObserve:(@_:World -> Pair(World, 0x7e321819d0ff210531780719c7674cef/ordinary_app_observation_data.Observation<Value>)) -> @-leafFold:(@_:Leaf -> Pair(Leaf, List<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_app_registration_fields.Fields<S>>)) -> @world:World -> @owners:Owners -> @leaf:Leaf -> @debug:Bool -> Registered<S, World, Pair(Owners, Leaf), 0x7e321819d0ff210531780719c7674cef/ordinary_app_observation_data.Product<Rows, Value>, 0x7e321819d0ff210531780719c7674cef/ordinary_app_recipe.observe_pair(World, Rows, Value, observe, leafObserve), 0x7e321819d0ff210531780719c7674cef/ordinary_app_records.fold_pair(S, Owners, Leaf, fold, leafFold)>
Advanced registration-composition adapter pairing existing and leaf owners. Combine observations and field folds in left-before-right order, preserving the supplied World and debug flag. This does not itself register or run the leaf.