Phase 14 - Organized directories.

This commit is contained in:
2026-10-03 19:13:39 -04:00
parent 6666173c4f
commit d950fd9d9a
307 changed files with 1452 additions and 1110 deletions
+10 -10
View File
@@ -2,12 +2,12 @@ extends SceneTree
## Focused Phase 4 Final Bugs regression checks. Run with the project console
## executable and `--headless --script res://tests/test_phase4_final_bugs.gd`.
const ACTION_REGISTRY := preload("res://scripts/action_registry.gd")
const GIZMOS := preload("res://scripts/stage_gizmos.gd")
const STAGE_SELECTION := preload("res://scripts/stage_selection.gd")
const ACTION_EDITOR_SCENE := preload("res://scenes/action_editor.tscn")
const STAGE_SCENE := preload("res://scenes/sandbox_stage.tscn")
const STICKMAN_FACTORY := preload("res://scripts/stickman_factory.gd")
const ACTION_REGISTRY := preload("res://scripts/stage/action_registry.gd")
const GIZMOS := preload("res://scripts/stage/stage_gizmos.gd")
const STAGE_SELECTION := preload("res://scripts/stage/stage_selection.gd")
const ACTION_EDITOR_SCENE := preload("res://scenes/editors/stage/action_editor.tscn")
const STAGE_SCENE := preload("res://scenes/stage/sandbox_stage.tscn")
const STICKMAN_FACTORY := preload("res://scripts/characters/stickman/stickman_factory.gd")
var _checks: int = 0
var _failures: int = 0
@@ -312,15 +312,15 @@ func _test_stop_clears_head_reaction() -> void:
func _test_source_contracts() -> void:
var stage_source: String = FileAccess.get_file_as_string("res://scripts/sandbox_stage.gd")
var rig_source: String = FileAccess.get_file_as_string("res://scripts/stickman_rig.gd")
var ragdoll_source: String = FileAccess.get_file_as_string("res://scripts/stickman_ragdoll.gd")
var stage_source: String = FileAccess.get_file_as_string("res://scripts/editors/stage/sandbox_stage.gd")
var rig_source: String = FileAccess.get_file_as_string("res://scripts/characters/stickman/stickman_rig.gd")
var ragdoll_source: String = FileAccess.get_file_as_string("res://scripts/characters/stickman/stickman_ragdoll.gd")
_check(stage_source.contains("TERRAIN_DRAG_THRESHOLD_PX"), "terrain uses a drag threshold")
_check(stage_source.contains("PhysicsServer2D.body_set_state"), "frozen prop commits synchronize physics")
_check(stage_source.contains("transform_started.connect"), "gizmo start cancels deferred restoration")
_check(stage_source.contains("if current_mode != StageMode.PLAY:"), "collision callbacks are gated to PLAY mode")
_check(stage_source.contains("_speak_stop_current_check") and stage_source.contains("\"stop_current\": _speak_stop_current_check.button_pressed"), "legacy rule speak persists stop-current")
var runner_source: String = FileAccess.get_file_as_string("res://scripts/stickman_action_runner.gd")
var runner_source: String = FileAccess.get_file_as_string("res://scripts/characters/stickman/stickman_action_runner.gd")
_check(runner_source.contains("_primary_speech") and runner_source.contains("_overlay_speech"), "runner separates primary and overlay speech")
_check(rig_source.contains("_sync_speech_bubble_mirror"), "rig counter-mirrors LEFT speech")
_check(rig_source.contains("initialize_spawn_pose_from_skeleton"), "rig captures factory spawn pose")