fix(client): resolve GDScript autoload parse-order errors

Autoload scripts are parsed before regular scripts, so class_name
types (CharacterVisualDescriptor, TestHarness, YamlParser) are not
available at parse time. Replace type annotations with untyped vars
and use load() for in-body class references. Fixes all 14 headless
parse errors (9 pre-existing + 5 from Sprint 30 changes).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-04 23:40:28 +02:00
co-authored by Claude Opus 4.6
parent c758bcd5d6
commit 0d5323f66c
5 changed files with 11 additions and 8 deletions
+1 -1
View File
@@ -51,4 +51,4 @@ func reload() -> void:
## Returns flat Dictionary with dotted keys: { "section.sub.key": "value" }.
## Delegates to YamlParser.parse_flat() (#560).
static func _parse_yaml(text: String) -> Dictionary:
return YamlParser.parse_flat(text)
return load("res://scripts/util/yaml_parser.gd").parse_flat(text)