def machines

bendvy-ecs-core@0.1.0.4 · restore_graph_raw.bend:69

import bendvy-ecs-core@0.1.0.4/restore_graph_raw.bend as RestoreGraphRaw
import Base
import bendvy-ecs-core@0.1.0.4/decode_data.bend as D
import bendvy-ecs-core@0.1.0.4/snapshot_data.bend as Snapshot
import bendvy-ecs-core@0.1.0.4/restore_raw.bend as Basic
import bendvy-ecs-core@0.1.0.4/restore_graph_data.bend as Graph

69def machines(basic:Snapshot.Snapshot,relations:List<&2,Graph.Relation>,raw:D.Raw) -> Basic.Decoded<Graph.Snapshot>:
70  match raw:
71    case D.Object{fields}:Basic.Value{Graph.Snapshot{basic,relations,fields}}
72    case other:Basic.invalid(~Graph.Snapshot,"$.machines","object",other)

Uses (7)

Used by (1)