def rows

bendvy-ecs-core@0.1.0.4 · snapshot.bend:14

import bendvy-ecs-core@0.1.0.4/snapshot.bend as Snapshot
import Base
import entity_key.bend as Key
import bendvy-ecs-core@0.1.0.4/snapshot_data.bend as Export
import bendvy-ecs-core@0.1.0.4/decode_data.bend as D
import bendvy-ecs-core@0.1.0.4/world.bend as W

14def rows(~S:Data,~C:Type,~components:U32 -> C -> C & List<&2,D.Field>,handles:List<&2,W.Handle<S>>,owner:C) -> C & List<&2,Export.Entity>:
15  match handles:
16    case []:(owner,[])
17    case W.Handle{_,+id} <> rest:stepped(~C,next => rows(~S,~C,~components,rest,next),id,components(Key.index(id),owner))

Uses (9)

Used by (1)