~/bend-docscommunity

ordinary_app_schedule_description.bend checks

raw source on the hub · import bendvy-ecs-core@0.1.0.7/ordinary_app_schedule_description.bend as Ordinary_app_schedule_description

9 imports
import Base
import ./ordinary_condition_composition.bend as Comp
import ./ordinary_app_schedule.bend as Schedule
import ./ordinary_app_schema.bend as SchemaApp
import ./ordinary_app_observation_data.bend as DTO
import ./ordinary_app_registration_fields.bend as Fields
import ./world.bend as W
import ./schedule.bend as Sch
import ./schedule_provision.bend as SP

Types

type Placement source · line 15 · raw

@S:Data -> Data

Names derive only from the retained actual Registry namespace/id. A missing binding stays None; this adapter never invents a label or condition name. Detached zero-based plan placement retaining requirements and condition slot. System names are joined by actual namespace/id; missing bindings remain None. Phase/barrier entries remain in position order, not fabricated system metadata.

type Description source · line 21 · raw

@S:Data -> @Rows:Data -> Data

Preserve the original single-schedule description with derived ordered placements. No new runtime state or gameplay capability is introduced.

type ConditionPlacement source · line 61 · raw

Data

Detached system position/id/slot plus optional condition description. Missing condition metadata stays None; the slot is not a newly evaluated condition.

type ConditionedDescription source · line 65 · raw

@S:Data -> @Rows:Data -> Data

Preserve original placements and detached condition bindings with their system placements; no condition callback is invoked by description derivation.

Definitions

def selected source · line 23 · raw

@same:Bool -> @name:String -> @next:Maybe<&2, String> -> Maybe<&2, String>

def condition_selected source · line 67 · raw

@chosen:Bool -> @facts:0x7e321819d0ff210531780719c7674cef/ordinary_condition_composition.Description -> @rest:Maybe<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_condition_composition.Description> -> Maybe<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_condition_composition.Description>

def condition_for source · line 71 · raw

@bindings:List<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_condition_composition.BindingDescription> -> @+id:U32 -> Maybe<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_condition_composition.Description>

Templates

template binding_name source · line 28 · raw

@-S:Data -> @+namespace:U32 -> @+id:U32 -> @bindings:List<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_app_observation_data.Binding<S>> -> Maybe<&2, String>

Advanced metadata lookup by exact namespace/id; no fallback or invented label.

template step source · line 32 · raw

@-S:Data -> @+namespace:U32 -> @bindings:List<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_app_observation_data.Binding<S>> -> @position:Nat -> @planned:0x7e321819d0ff210531780719c7674cef/ordinary_app_schedule.PlannedStep<S> -> Placement<S>

template placed source · line 39 · raw

@-S:Data -> @steps:List<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_app_schedule.PlannedStep<S>> -> @+namespace:U32 -> @+bindings:List<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_app_observation_data.Binding<S>> -> @+position:Nat -> List<&2, Placement<S>>

Advanced placement derivation over supplied planned steps, starting at position. Bindings are detached input metadata, not another registration authority.

template described source · line 45 · raw

@-S:Data -> @-Rows:Data -> @+description:0x7e321819d0ff210531780719c7674cef/ordinary_app_schedule.Description<S, Rows> -> Description<S, Rows>

Derive placements from the original snapshot's retained plan and bindings, preserving that original complete description.

template returned source · line 48 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-H:Type -> @-Rows:Data -> @-observe:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> Pair(0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, 0x7e321819d0ff210531780719c7674cef/ordinary_app_observation_data.Observation<Rows>)) -> @-fold:(@_:H -> Pair(H, List<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_app_registration_fields.Fields<S>>)) -> @result:Pair(0x7e321819d0ff210531780719c7674cef/ordinary_app_schedule.Application<S, C, R, E, H, Rows, observe, fold>, Maybe<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_app_schedule.Description<S, Rows>>) -> Pair(0x7e321819d0ff210531780719c7674cef/ordinary_app_schedule.Application<S, C, R, E, H, Rows, observe, fold>, Maybe<&2, Description<S, Rows>>)

template snapshot source · line 56 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-H:Type -> @-Rows:Data -> @-observe:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> Pair(0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, 0x7e321819d0ff210531780719c7674cef/ordinary_app_observation_data.Observation<Rows>)) -> @-fold:(@_:H -> Pair(H, List<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_app_registration_fields.Fields<S>>)) -> @app:0x7e321819d0ff210531780719c7674cef/ordinary_app_schedule.Application<S, C, R, E, H, Rows, observe, fold> -> Pair(0x7e321819d0ff210531780719c7674cef/ordinary_app_schedule.Application<S, C, R, E, H, Rows, observe, fold>, Maybe<&2, Description<S, Rows>>)

The existing snapshot's disabled branch returns before fold/observe and before this adapter derives any placements. No new observation callback is accepted. Observe the single-schedule App, then derive placements only for an enabled snapshot. Disabled returns App and None before observer/placement work.

template condition_step source · line 75 · raw

@-S:Data -> @namespace:U32 -> @bindings:List<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_condition_composition.BindingDescription> -> @position:Nat -> @planned:0x7e321819d0ff210531780719c7674cef/ordinary_app_schedule.PlannedStep<S> -> List<&2, ConditionPlacement>

template condition_placements source · line 79 · raw

@-S:Data -> @steps:List<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_app_schedule.PlannedStep<S>> -> @+namespace:U32 -> @+bindings:List<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_condition_composition.BindingDescription> -> @+position:Nat -> List<&2, ConditionPlacement>

template with_conditions source · line 85 · raw

@-S:Data -> @-Rows:Data -> @+original:0x7e321819d0ff210531780719c7674cef/ordinary_app_schedule.Description<S, Rows> -> @+bindings:List<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_condition_composition.BindingDescription> -> ConditionedDescription<S, Rows>

Advanced metadata adapter joining supplied condition descriptions to system ids and retaining the complete original schedule description.

template conditions_returned source · line 88 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-H:Type -> @-Rows:Data -> @-observe:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> Pair(0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, 0x7e321819d0ff210531780719c7674cef/ordinary_app_observation_data.Observation<Rows>)) -> @-fold:(@_:H -> Pair(H, List<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_app_registration_fields.Fields<S>>)) -> @-B:Type -> @-select:(@_:B -> @_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:U32 -> 0x7e321819d0ff210531780719c7674cef/ordinary_condition_composition.Evaluation<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, B>) -> @observed:Pair(0x7e321819d0ff210531780719c7674cef/ordinary_app_schedule.ConditionedApplication<S, C, R, E, H, Rows, observe, fold, B, select>, Maybe<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_app_schedule.ConditionDescription<S, Rows>>) -> Pair(0x7e321819d0ff210531780719c7674cef/ordinary_app_schedule.ConditionedApplication<S, C, R, E, H, Rows, observe, fold, B, select>, Maybe<&2, ConditionedDescription<S, Rows>>)

template snapshot_conditions source · line 96 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-H:Type -> @-Rows:Data -> @-observe:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> Pair(0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, 0x7e321819d0ff210531780719c7674cef/ordinary_app_observation_data.Observation<Rows>)) -> @-fold:(@_:H -> Pair(H, List<&2, 0x7e321819d0ff210531780719c7674cef/ordinary_app_registration_fields.Fields<S>>)) -> @-B:Type -> @-select:(@_:B -> @_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:U32 -> 0x7e321819d0ff210531780719c7674cef/ordinary_condition_composition.Evaluation<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, B>) -> @app:0x7e321819d0ff210531780719c7674cef/ordinary_app_schedule.ConditionedApplication<S, C, R, E, H, Rows, observe, fold, B, select> -> Pair(0x7e321819d0ff210531780719c7674cef/ordinary_app_schedule.ConditionedApplication<S, C, R, E, H, Rows, observe, fold, B, select>, Maybe<&2, ConditionedDescription<S, Rows>>)

The standard App snapshot decides debug before any condition placement work. Return the conditioned App and optional placement/condition description using its existing snapshot. Debug is checked before condition placement derivation; this does not execute conditions or change their actual owner state.