def family

bendvy-ecs-core@0.1.0.4 · ordinary_component_binding.bend:21

import bendvy-ecs-core@0.1.0.4/ordinary_component_binding.bend as OrdinaryComponentBinding
import Base
import bendvy-ecs-core@0.1.0.4/component.bend as C
import bendvy-ecs-core@0.1.0.4/column.bend as Col

21# Return the typed component family used by lower-level component operations.
22# Retains the binding's schema, storage and projection indices; does not access
23# a world. Raw family construction is trusted provisioning, not gameplay access.
24def family(~S:Data,~Store:Type,~Rest:Type,~P:Type,~V:Data,~Token:Data,~take:Store -> Rest & Col.Column<S,P>,~put:Rest -> Col.Column<S,P> -> Store,~view:P -> P & V,binding:Binding<S,Store,Rest,P,V,Token,take,put,view>) -> C.Family<S,Store,Rest,P,V,Token,take,put,view>:
25  match binding:
26    case Binding{_,family}:family

Uses (4)

Used by (15)