attributes: @Material(field) resolved as @Node is; @OneOf on a string field takes words, and every registry row's value is checked against them - words on another field, or constants on a string, is an error; reseeded

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-29 19:13:32 +03:00
parent d82dc3162f
commit 81cb992fad
10 changed files with 75030 additions and 73286 deletions

View file

@ -32,6 +32,8 @@ program Attributes {
@Key bind: int = 0 # the key that takes it in hand
@Clip(model) swing: string = "swing" # the clip it plays in use
@OneOf(VD_STORE, VD_MARINA) sold_at: int = VD_MARINA
@Material(model) finish: string = "steel" # a material in that model
@OneOf("box", "hull") shape: string = "box" # what it collides as: one of these words, row by row
}
@AppendOnly
registry Tools of Tool as TL from "data/attr_tools.lres"

View file

@ -5,4 +5,5 @@ lantern {
seller: VD_MARINA
weight: 0.75
stocked_at: VD_MARINA
shape: "hull"
}