def entity_array

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

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

89def entity_array(next:U32,fields:List<&2,D.Field>,raw:D.Raw) -> Basic.Decoded<Graph.Snapshot>:
90  match raw:
91    case D.Array{values}:entities_checked(next,fields,Basic.entities(values,0))
92    case other:Basic.invalid(~Graph.Snapshot,"$.entities","array",other)

Uses (9)

Used by (1)