restore_graph_data.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.6/restore_graph_data.bend as Restore_graph_data
5 imports
import Base import ./entity_key.bend as Key import ./snapshot_data.bend as Basic import ./decode_data.bend as D import ./relation_types.bend as G
Types
type Group source · line 7 · raw
Data
Group@target:0x14a72e1c180a5ab1f8a056d43822425c/entity_key.Key -> @sources:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/entity_key.Key> -> Group
type Relation source · line 9 · raw
Data
Relation@name:String -> @groups:List<&2, Group> -> Relation
type Snapshot source · line 11 · raw
Data
Snapshot@basic:0x14a72e1c180a5ab1f8a056d43822425c/snapshot_data.Snapshot -> @relations:List<&2, Relation> -> @machines:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field> -> Snapshot
type Error source · line 13 · raw
Data
UnknownRelation@name:String -> Error
InvalidRelation@name:String -> @source:0x14a72e1c180a5ab1f8a056d43822425c/entity_key.Key -> @target:0x14a72e1c180a5ab1f8a056d43822425c/entity_key.Key -> Error
UnknownMachine@name:String -> Error
InvalidMachineState@name:String -> @value:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw -> Error
type GraphResult source · line 18 · raw
@S:Data -> Data
Accepted@S:Data -> @graph:0x14a72e1c180a5ab1f8a056d43822425c/relation_types.Graph<S> -> GraphResult<S>
Rejected@S:Data -> @error:Error -> GraphResult<S>