~/bend-docscommunity

ordinary_component_binding.bend checks

raw source on the hub · import bendvy-ecs-core@0.1.0.1/ordinary_component_binding.bend as Ordinary_component_binding

4 imports
import Base
import ./ordinary_declaration.bend as Identity
import ./component.bend as C
import ./column.bend as Col

Types

type Binding source · line 7 · raw

@-S:Data -> @-Store:Type -> @-Rest:Type -> @-P:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0xf435da9e535b3846d643dad16580e35f/column.Column<S, P>)) -> @-put:(@_:Rest -> @_:0xf435da9e535b3846d643dad16580e35f/column.Column<S, P> -> Store) -> @-view:(@_:P -> Pair(P, V)) -> Data

Static trusted schema lenses; this Data binding owns no payload or closure.

Templates

template bind source · line 14 · raw

@-S:Data -> @-Store:Type -> @-Rest:Type -> @-P:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0xf435da9e535b3846d643dad16580e35f/column.Column<S, P>)) -> @-put:(@_:Rest -> @_:0xf435da9e535b3846d643dad16580e35f/column.Column<S, P> -> Store) -> @-view:(@_:P -> Pair(P, V)) -> @+identity:0xf435da9e535b3846d643dad16580e35f/ordinary_declaration.Declaration<S, P> -> Binding<S, Store, Rest, P, V, Token, take, put, view>

Trusted schema setup: connect a component identity to its column take/put lenses and owner-preserving Data projection. The resulting Data binding owns no payload. Callers must supply mutually consistent lenses; this constructor does not prove their laws or establish runtime world identity. Example: examples/scheduled-health/registration.bend component bindings.

template identity source · line 18 · raw

@-S:Data -> @-Store:Type -> @-Rest:Type -> @-P:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0xf435da9e535b3846d643dad16580e35f/column.Column<S, P>)) -> @-put:(@_:Rest -> @_:0xf435da9e535b3846d643dad16580e35f/column.Column<S, P> -> Store) -> @-view:(@_:P -> Pair(P, V)) -> @binding:Binding<S, Store, Rest, P, V, Token, take, put, view> -> 0xf435da9e535b3846d643dad16580e35f/ordinary_declaration.Declaration<S, P>

Return the schema-scoped component identity from a trusted binding. This detached declaration does not identify an entity or grant world access.

template family source · line 24 · raw

@-S:Data -> @-Store:Type -> @-Rest:Type -> @-P:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0xf435da9e535b3846d643dad16580e35f/column.Column<S, P>)) -> @-put:(@_:Rest -> @_:0xf435da9e535b3846d643dad16580e35f/column.Column<S, P> -> Store) -> @-view:(@_:P -> Pair(P, V)) -> @binding:Binding<S, Store, Rest, P, V, Token, take, put, view> -> 0xf435da9e535b3846d643dad16580e35f/component.Family<S, Store, Rest, P, V, Token, take, put, view>

Return the typed component family used by lower-level component operations. Retains the binding's schema, storage and projection indices; does not access a world. Raw family construction is trusted provisioning, not gameplay access.