registry NAME of RECORD [as PREFIX] from "file.lres" fills a registry from a data
file of key { field: value } entries, read at compile time with the record as its
schema: every entry is checked like a def, errors name the resource file's line,
nested records and lists of them are bare { } / [{ }] typed by their fields, and
values are expressions in the registry's module. The entries are compiled in, so
nothing parses at start-up and a build that succeeds has validated its resources.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
11 lines
258 B
Text
11 lines
258 B
Text
# tools.lres - the tools a camp keeps, read by resources.ludic's registry when it is compiled
|
|
axe {
|
|
name: "Axe"
|
|
weight: 1.5
|
|
uses: [{ verb: "Chop", minutes: 20 }, { verb: "Split", minutes: 10 }]
|
|
}
|
|
lantern {
|
|
name: "Lantern"
|
|
weight: 0.75
|
|
uses: []
|
|
}
|