def entity_array
bendvy-ecs-core@0.1.0.4 · restore_raw.bend:77
import bendvy-ecs-core@0.1.0.4/restore_raw.bend as RestoreRaw
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
77def entity_array(next:U32,fields:List<&2,D.Field>,raw:D.Raw) -> Decoded<Snapshot.Snapshot>:
78 match raw:
79 case D.Array{values}:entities_checked(next,fields,entities(values,0))
80 case other:invalid(~Snapshot.Snapshot,"$.entities","array",other)