~/bend-docscommunity

restore_graph_save.bend checks

raw source on the hub · import bendvy-ecs-core@0.1.0.6/restore_graph_save.bend as Restore_graph_save

11 imports
import Base
import ./restore_graph_data.bend as R
import ./world.bend as W
import ./relation_commands.bend as Relation
import ./owner_product.bend as Product
import ./decode_data.bend as D
import ./snapshot_data.bend as Basic
import ./entity_key.bend as Key
import ./relation_types.bend as G
import ./relation_graph.bend as Graph
import ./relation_failure_reader.bend as Ordinary

Definitions

def included source · line 13 · raw

@found:Bool -> @target:0x14a72e1c180a5ab1f8a056d43822425c/entity_key.Key -> @sources:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/entity_key.Key> -> @rest:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_graph_data.Group> -> List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_graph_data.Group>

Templates

template groups source · line 17 · raw

@-S:Data -> @entries:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_types.Inverse<S>> -> @+descriptor:0x14a72e1c180a5ab1f8a056d43822425c/relation_types.Descriptor<S> -> List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_graph_data.Group>

template relations source · line 21 · raw

@-S:Data -> @declarations:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S>> -> @+graph:0x14a72e1c180a5ab1f8a056d43822425c/relation_types.Graph<S> -> List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_graph_data.Relation>

template machine_read_joined source · line 25 · raw

@-Resources:Type -> @-Machines:Type -> @resource:Resources -> @result:Pair(Machines, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field>) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<Resources, Machines>, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field>)

template machine_read source · line 28 · raw

@-Resources:Type -> @-Machines:Type -> @-readMachines:(@_:Machines -> Pair(Machines, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field>)) -> @resource:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<Resources, Machines> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<Resources, Machines>, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field>)

template machine_joined source · line 31 · raw

@-S:Data -> @-C:Type -> @-Resources:Type -> @-Machines:Type -> @-E:Data -> @-readMachines:(@_:Machines -> Pair(Machines, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field>)) -> @basic:0x14a72e1c180a5ab1f8a056d43822425c/snapshot_data.Snapshot -> @relations:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_graph_data.Relation> -> @result:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<Resources, Machines>, E>, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field>) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<Resources, Machines>, E>, 0x14a72e1c180a5ab1f8a056d43822425c/snapshot_data.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/restore_graph_data.Snapshot>)

template graph_joined source · line 34 · raw

@-S:Data -> @-C:Type -> @-Resources:Type -> @-Machines:Type -> @-E:Data -> @-readMachines:(@_:Machines -> Pair(Machines, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field>)) -> @basic:0x14a72e1c180a5ab1f8a056d43822425c/snapshot_data.Snapshot -> @declarations:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S>> -> @result:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<Resources, Machines>, E>, 0x14a72e1c180a5ab1f8a056d43822425c/relation_types.Graph<S>) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<Resources, Machines>, E>, 0x14a72e1c180a5ab1f8a056d43822425c/snapshot_data.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/restore_graph_data.Snapshot>)

template basic_joined source · line 37 · raw

@-S:Data -> @-C:Type -> @-Resources:Type -> @-Machines:Type -> @-E:Data -> @-readMachines:(@_:Machines -> Pair(Machines, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field>)) -> @declarations:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S>> -> @result:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<Resources, Machines>, E>, 0x14a72e1c180a5ab1f8a056d43822425c/snapshot_data.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/snapshot_data.Snapshot>) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<Resources, Machines>, E>, 0x14a72e1c180a5ab1f8a056d43822425c/snapshot_data.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/restore_graph_data.Snapshot>)

template save_ready source · line 41 · raw

@-S:Data -> @-C:Type -> @-Resources:Type -> @-Machines:Type -> @-E:Data -> @-readMachines:(@_:Machines -> Pair(Machines, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field>)) -> @-saveBasic:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<Resources, Machines>, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<Resources, Machines>, E>, 0x14a72e1c180a5ab1f8a056d43822425c/snapshot_data.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/snapshot_data.Snapshot>)) -> @declarations:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S>> -> @result:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<Resources, Machines>, E>, Bool) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<Resources, Machines>, E>, 0x14a72e1c180a5ab1f8a056d43822425c/snapshot_data.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/restore_graph_data.Snapshot>)

template save source · line 49 · raw

@-S:Data -> @-C:Type -> @-Resources:Type -> @-Machines:Type -> @-E:Data -> @-readMachines:(@_:Machines -> Pair(Machines, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field>)) -> @-saveBasic:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<Resources, Machines>, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<Resources, Machines>, E>, 0x14a72e1c180a5ab1f8a056d43822425c/snapshot_data.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/snapshot_data.Snapshot>)) -> @declarations:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S>> -> @world:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<Resources, Machines>, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<Resources, Machines>, E>, 0x14a72e1c180a5ab1f8a056d43822425c/snapshot_data.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/restore_graph_data.Snapshot>)

Save graph and committed machine values only after structural admission. RefusedPending preserves World and skips even saveBasic/readMachines callbacks. Separate queued machine transitions remain outside this committed-value snapshot; this operation neither rejects them nor applies a machine marker/barrier.