def finish

bendvy-ecs-core@0.1.0.3 · snapshot_data.bend:41

import bendvy-ecs-core@0.1.0.3/snapshot_data.bend as SnapshotData
import Base
import bendvy-ecs-core@0.1.0.3/world.bend as W
import bendvy-ecs-core@0.1.0.3/decode_data.bend as D

41# Closed schema providers must return the actual store/resource owners. Their
42# projections, transient omission and name bindings are trusted author inputs.
43# This is NOT the still-missing public constructed-descriptor validation gate.
44def finish(~S:Data,~C:Type,~R:Type,~E:Data,nextEntity:U32,entities:List<&2,Entity>,observed:W.World<S,C,R,E> & List<&2,D.Field>) -> W.World<S,C,R,E> & Snapshot:
45  match observed:
46    case (world,fields):(world,Snapshot{1,nextEntity,entities,fields})

Uses (8)

Used by (1)