def right_components

bendvy-ecs-core@0.1.0.4 · snapshot_product.bend:9

import bendvy-ecs-core@0.1.0.4/snapshot_product.bend as SnapshotProduct
import Base
import bendvy-ecs-core@0.1.0.4/decode_data.bend as D
import bendvy-ecs-core@0.1.0.4/owner_product.bend as Product

9def right_components(~LC:Type,~RC:Type,~right:U32 -> RC -> RC & List<&2,D.Field>,id:U32,owner:RC,observed:LC & List<&2,D.Field>) -> Product.Owner<LC,RC> & List<&2,D.Field>:
10  match observed:
11    case (left,fields):joined_components(~LC,~RC,left,fields,right(id,owner))

Uses (7)

Used by (1)