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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user