22 lines
765 B
Text
22 lines
765 B
Text
# 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 = ""
|
|
@Asset("gltf") body: string = ""
|
|
@Asset("gltf") lod: string = ""
|
|
}
|
|
registry Kits of Kit
|
|
property Tool {
|
|
tag: string = ""
|
|
@Ref(Kits) kit: int = 0
|
|
@Node(handle) grip: string = ""
|
|
@Node(tag) tip: string = ""
|
|
@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) }
|
|
}
|