restore_graph_schema.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.6/restore_graph_schema.bend as Restore_graph_schema
11 imports
import Base import ./change_tick.bend as Tick import ./restore_schema.bend as Basic import ./snapshot_schema.bend as Save import ./restore_data.bend as R import ./relation_commands.bend as Relation import ./relation_types.bend as G import ./owner_product.bend as Product import ./ordinary_schema.bend as Ordinary import ./world.bend as W import ./decode_data.bend as D
Templates
template cleared source · line 12 · raw
@-S:Data -> @-C:Type -> @graph:0x14a72e1c180a5ab1f8a056d43822425c/relation_types.Graph<S> -> @result:Pair(C, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Change<S>>) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Change<S>>)
template clear source · line 15 · raw
@-S:Data -> @-C:Type -> @-clearBase:(@_:C -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Pair(C, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Change<S>>)) -> @store:0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C> -> @handle:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Change<S>>)
template inserted source · line 18 · raw
@-S:Data -> @-C:Type -> @-Resources:Type -> @-Machines:Type -> @-State:Type -> @graph:0x14a72e1c180a5ab1f8a056d43822425c/relation_types.Graph<S> -> @machines:Machines -> @result:Pair(Pair(C, Resources), State) -> Pair(Pair(0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<Resources, Machines>), State)
template insert source · line 21 · raw
@-S:Data -> @-C:Type -> @-Resources:Type -> @-Machines:Type -> @-State:Type -> @-Custom:Data -> @-stage:(@_:State -> @_:0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Position -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field -> Pair(State, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Dispatch<Custom>)) -> @-release:(@_:State -> State) -> @-clearBase:(@_:C -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Pair(C, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Change<S>>)) -> @-insertBase:(@_:C -> @_:Resources -> @_:State -> @_:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Binding<S>> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick -> Pair(Pair(C, Resources), State)) -> @store:0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C> -> @resources:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<Resources, Machines> -> @state:State -> @bindings:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Binding<S>> -> @tick:0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick -> Pair(Pair(0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<Resources, Machines>), State)
template lift source · line 24 · raw
@-S:Data -> @-C:Type -> @-Resources:Type -> @-Machines:Type -> @-State:Type -> @-Custom:Data -> @-stage:(@_:State -> @_:0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Position -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field -> Pair(State, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Dispatch<Custom>)) -> @-release:(@_:State -> State) -> @-clearBase:(@_:C -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Pair(C, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Change<S>>)) -> @-insertBase:(@_:C -> @_:Resources -> @_:State -> @_:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Binding<S>> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick -> Pair(Pair(C, Resources), State)) -> @-Recovery:Type -> @-commit:(@_:State -> State) -> @-takeRecovery:(@_:State -> Pair(State, Recovery)) -> @schema:0x14a72e1c180a5ab1f8a056d43822425c/restore_schema.Schema<S, C, Resources, State, Custom, stage, release, clearBase, insertBase, Recovery, commit, takeRecovery> -> 0x14a72e1c180a5ab1f8a056d43822425c/restore_schema.Schema<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<Resources, Machines>, State, Custom, stage, release, clear(S, C, clearBase), insert(S, C, Resources, Machines, State, Custom, stage, release, clearBase, insertBase), Recovery, commit, takeRecovery>
template component_saved source · line 27 · raw
@-S:Data -> @-C:Type -> @graph:0x14a72e1c180a5ab1f8a056d43822425c/relation_types.Graph<S> -> @result:Pair(C, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field>) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field>)
template save_components source · line 30 · raw
@-S:Data -> @-C:Type -> @-components:(@_:U32 -> @_:C -> Pair(C, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field>)) -> @id:U32 -> @store:0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field>)
template resource_saved source · line 33 · raw
@-Resources:Type -> @-Machines:Type -> @machines:Machines -> @result:Pair(Resources, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field>) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<Resources, Machines>, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field>)
template save_resources source · line 36 · raw
@-Resources:Type -> @-Machines:Type -> @-resources:(@_:Resources -> Pair(Resources, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field>)) -> @owner:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<Resources, Machines> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<Resources, Machines>, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field>)
template save_schema source · line 39 · raw
@-S:Data -> @-C:Type -> @-Resources:Type -> @-Machines:Type -> @-components:(@_:U32 -> @_:C -> Pair(C, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field>)) -> @-resources:(@_:Resources -> Pair(Resources, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field>)) -> @schema:0x14a72e1c180a5ab1f8a056d43822425c/snapshot_schema.Schema<S, C, Resources, True{}, components, resources> -> 0x14a72e1c180a5ab1f8a056d43822425c/snapshot_schema.Schema<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<Resources, Machines>, True{}, save_components(S, C, components), save_resources(Resources, Machines, resources)>