def relation

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

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/restore_raw.bend as Basic
import bendvy-ecs-core@0.1.0.4/restore_graph_data.bend as Graph

53def relation(+name:String,raw:D.Raw) -> Basic.Decoded<Graph.Relation>:
54  match raw:
55    case D.Array{values}:relation_groups(name,groups("$.relations." ++ name,values,0))
56    case other:Basic.invalid(~Graph.Relation,"$.relations." ++ name,"array",other)

Uses (8)

Used by (1)