def component

bendvy-ecs-core@0.1.0.4 · ordinary_bundle.bend:18

import bendvy-ecs-core@0.1.0.4/ordinary_bundle.bend as OrdinaryBundle
import Base
import ordinary_declaration.bend as Identity
import schema_fragments.bend as SF

18# Describe one component in a bundle using its schema-scoped declaration.
19# Adds metadata only; does not allocate a column or accept a payload.
20def component(~S:Data,~I:Type,~P:Type,+identity:Identity.Declaration<S,P>) -> Plan<S,I,P>:
21  Plan{[SF.Entry{SF.Component{},Identity.key(~S,~P,identity),Identity.key(~S,~P,identity)}]}

Uses (6)

Used by (0)

No other definition uses this definition.