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
@@ -62,7 +62,7 @@ func _show_character_creation() -> void:
_char_creation.creation_cancelled.connect(_on_creation_cancelled)
func _on_creation_confirmed(descriptor: CharacterVisualDescriptor) -> void:
func _on_creation_confirmed(descriptor) -> void:
if _char_creation != null and is_instance_valid(_char_creation):
_char_creation.queue_free()
_char_creation = null