ludic/examples/modules/crafting/index.ludic
Orkuncakilkaya a5f52c4581 feat(lang): def REGISTRY from "file.lres" - a game fills an open registry from its own file
The entries are read and checked against the registry's record as a
registry ... from file is, errors at the resource file's line, and they
are defs of the module that wrote the line: the registry must be open to
it, and they take that module's place in the stable order. Reseed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 07:22:05 +03:00

9 lines
284 B
Text

# crafting/index.ludic - a registry the game may add to, and the package's own first entry
module crafting
export property Recipe {
key: string = ""
name: string = ""
minutes: int = 0
}
export open registry Recipes of Recipe as RC
def Recipes rope { name: "Rope", minutes: 10 }