attributes: a target the program does not have at all (an @Ref registry, an @Tint / @OneOf constant) is a warning and "unresolved" in the schema, not an error - a package names the game's registry without importing it; a name of another kind is still an error; reseeded

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-29 19:10:45 +03:00
parent dacc0f7280
commit d82dc3162f
10 changed files with 83635 additions and 82878 deletions

View file

@ -37,6 +37,7 @@ program Attributes {
registry Tools of Tool as TL from "data/attr_tools.lres"
# a tool hung on the camp's rack: which, and from which node of ITS model
property RackSlot {
@Ref(Items) item: int = 0 # a registry this program lacks: a warning, unresolved
@Ref(Tools) tool: int = 0
@Node(tool) hook: string = "grip"
}

View file

@ -1,7 +1,6 @@
# 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 and @Tint name constants that exist, which KITS_NONE and TSLOT_NONE are not (all six are
# reported)
# attributes: @Node / @Clip name a field of their record that names a glTF - `handle` names no field,
# `tag` is a plain string, and `kit` refers to a registry whose record has two models: four errors.
# @OneOf's KITS_NONE and @Tint's TSLOT_NONE are in no part of the program: two warnings.
program R {
property Kit {
key: string = ""

View file

@ -1,9 +1,10 @@
# attributes: @Ref names a registry - there is no registry Vendorz, nor Shops (both are reported)
# attributes: @Ref names a registry - Vendor is a record, which is an error; Shops is in no part of
# this program, which is only a warning (a package may name the game's registry it cannot import)
program R {
property Vendor { key: string = "" }
registry Vendors of Vendor
property Tool {
@Ref(Vendorz) seller: int = 0
@Ref(Vendor) seller: int = 0
@Ref(Shops) shop: int = 0
}
entry { print(VENDORS_COUNT) }