Keywords: module uses friend export internal numbers unsafe mut port bind action reducer registry of as from def open alias component prop view (structure), shows lasts then loads (scenes), system (ecs), dispatch (control), true false null (operators). Attributes: @Ref @OneOf @Range @Unit @Asset @Color, @Node / @Clip / @Material, @Tint @Derived, @Text / @Multiline, @Key, @AppendOnly / @ByKey, @PerMap / @Chunked, @frame @max, @owns / @creates / @releases, @deterministic @alloc_ok. Each is in tools/docgen/inventory.json; every fence that is not marked skip parses (ludicc --fmt). annot-clearcolor's token loses its quotes, which no reader strips. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
862 B
862 B
id: kw-registry name: registry category: structure kind: keyword tokens: registry sig: [open] registry Name of Record [as PREFIX] [from "file.lres"] tip: A table of named entries of one record type, with a constant per entry. order: 63
A registry is a table of named entries of one record: its entries come from def declarations or a resource file named by from, and as P generates a constant P_KEY per entry holding its index. Editors read it through ludic schema, and attributes such as @AppendOnly and @PerMap say how its entries may change and where they live.
# doc-check: skip — the file it names is beside the example
property Tool { key: string = "", weight: float = 0.0 }
registry Tools of Tool as TL from "data/tools.lres"