def resources

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

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

69def resources(next:U32,values:List<&2,Snapshot.Entity>,raw:D.Raw) -> Decoded<Snapshot.Snapshot>:
70  match raw:
71    case D.Object{fields}:Value{Snapshot.Snapshot{1,next,values,fields}}
72    case other:invalid(~Snapshot.Snapshot,"$.resources","object",other)

Uses (7)

Used by (1)