def entity_key

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

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/entity_key.bend as Key
import bendvy-ecs-core@0.1.0.4/snapshot_data.bend as Snapshot

49def entity_key(+path:String,+fields:List<&2,D.Field>,result:Decoded<Key.Key>) -> Decoded<Snapshot.Entity>:
50  match result:
51    case Value{saved}:entity_fields(saved,path ++ ".components",D.field("components",fields))
52    case Failed{error}:Failed{error}

Uses (9)

Used by (1)