attributes: @Tint(SLOT) on a colour field, into the schema - SLOT must be a constant that exists (a row of the program's tint-slot registry); reseeded

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-29 18:51:27 +03:00
parent 34c2ac2cb9
commit b5bffe99fa
8 changed files with 71123 additions and 70774 deletions

View file

@ -24,7 +24,7 @@ program Attributes {
@Range(0, 20.5) @Unit("kg") weight: float = 1.0
@Asset("gltf")
model: string = "" # its model, under assets/kit
@Color tint: int = 16777215
@Color @Tint(VD_STORE) tint: int = 16777215
@OneOf(VD_) stocked_at: int = VD_STORE
@Node(model) grip: string = "grip" # where a hand holds it, a node in that model
@Derived reach: float = 0.0 # worked out at boot from the model

View file

@ -1,6 +1,7 @@
# attributes: @Node / @Clip name a field of its record that names a glTF - `handle` names no field,
# `tag` is a plain string, `kit` refers to a registry whose record has two models - and a listing
# @OneOf names constants that exist, which KITS_NONE is not (all five are reported)
# @OneOf and @Tint name constants that exist, which KITS_NONE and TSLOT_NONE are not (all six are
# reported)
program R {
property Kit {
key: string = ""
@ -16,6 +17,7 @@ program R {
@Node(kit) hook: string = ""
@Clip(tag) swing: string = ""
@OneOf(KITS_COUNT, KITS_NONE) which: int = 0
@Tint(TSLOT_NONE) shade: int = 0
}
entry { print(KITS_COUNT) }
}