gdharness 1.3.8 → 1.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +4668 -3229
- package/build/godot/addons/gdharness_editor/animation_reads.gd +115 -4
- package/build/godot/addons/gdharness_editor/declared_values.gd +272 -0
- package/build/godot/addons/gdharness_editor/file_reads.gd +115 -18
- package/build/godot/addons/gdharness_editor/headless_check.gd +49 -2
- package/build/godot/addons/gdharness_editor/property_paths.gd +89 -16
- package/build/godot/addons/gdharness_editor/property_values.gd +180 -121
- package/build/godot/addons/gdharness_editor/reading.gd +112 -6
- package/build/godot/addons/gdharness_editor/scene_file.gd +117 -174
- package/build/godot/addons/gdharness_editor/scene_uids.gd +107 -0
- package/build/godot/addons/gdharness_editor/scene_uids.gd.uid +1 -0
- package/build/godot/addons/gdharness_editor/serialisation.gd +19 -29
- package/build/godot/addons/gdharness_editor/setting_reads.gd +121 -0
- package/build/godot/addons/gdharness_editor/setting_reads.gd.uid +1 -0
- package/build/godot/addons/gdharness_editor/tool_executor.gd +39 -6
- package/build/godot/addons/gdharness_editor/tools/animation_states.gd +263 -0
- package/build/godot/addons/gdharness_editor/tools/animation_states.gd.uid +1 -0
- package/build/godot/addons/gdharness_editor/tools/animation_tools.gd +49 -414
- package/build/godot/addons/gdharness_editor/tools/animation_tracks.gd +464 -0
- package/build/godot/addons/gdharness_editor/tools/animation_tracks.gd.uid +1 -0
- package/build/godot/addons/gdharness_editor/tools/class_tools.gd +37 -0
- package/build/godot/addons/gdharness_editor/tools/navigation_bake.gd +221 -0
- package/build/godot/addons/gdharness_editor/tools/navigation_bake.gd.uid +1 -0
- package/build/godot/addons/gdharness_editor/tools/resource_tools.gd +162 -483
- package/build/godot/addons/gdharness_editor/tools/scene_groups.gd +16 -0
- package/build/godot/addons/gdharness_editor/tools/scene_kin.gd +8 -4
- package/build/godot/addons/gdharness_editor/tools/scene_paths.gd +2 -1
- package/build/godot/addons/gdharness_editor/tools/scene_placing.gd +10 -0
- package/build/godot/addons/gdharness_editor/tools/scene_tools.gd +151 -8
- package/build/godot/addons/gdharness_editor/tools/settings_tools.gd +7 -30
- package/build/godot/addons/gdharness_editor/tools/signal_tools.gd +190 -38
- package/build/godot/addons/gdharness_editor/tools/tileset_tools.gd +485 -0
- package/build/godot/addons/gdharness_editor/tools/tileset_tools.gd.uid +1 -0
- package/build/godot/addons/gdharness_editor/value_shapes.gd +128 -1
- package/build/godot/addons/gdharness_runtime/call_errors.gd +8 -2
- package/build/godot/addons/gdharness_runtime/declared_values.gd +272 -0
- package/build/godot/addons/gdharness_runtime/reading.gd +112 -6
- package/build/godot/addons/gdharness_runtime/runtime_autoload.gd +35 -3
- package/build/godot/addons/gdharness_runtime/runtime_capture.gd +5 -0
- package/build/godot/addons/gdharness_runtime/runtime_changes.gd +188 -30
- package/build/godot/addons/gdharness_runtime/runtime_input.gd +107 -104
- package/build/godot/addons/gdharness_runtime/runtime_mouse.gd +17 -0
- package/build/godot/addons/gdharness_runtime/runtime_pad.gd +13 -4
- package/build/godot/addons/gdharness_runtime/runtime_paths.gd +320 -27
- package/build/godot/addons/gdharness_runtime/runtime_queries.gd +165 -20
- package/build/godot/addons/gdharness_runtime/runtime_screen.gd +49 -3
- package/build/godot/addons/gdharness_runtime/runtime_targets.gd +31 -2
- package/build/godot/addons/gdharness_runtime/runtime_values.gd +250 -10
- package/build/godot/addons/gdharness_runtime/runtime_waits.gd +279 -11
- package/build/godot/addons/gdharness_runtime/runtime_words.gd +27 -0
- package/build/godot/addons/gdharness_runtime/serialisation.gd +19 -29
- package/build/godot/addons/gdharness_runtime/value_shapes.gd +128 -1
- package/build/godot/operations/animation_reads.gd +115 -4
- package/build/godot/operations/audio_buses.gd +93 -7
- package/build/godot/operations/classdb_queries.gd +119 -7
- package/build/godot/operations/declared_values.gd +272 -0
- package/build/godot/operations/dependencies.gd +154 -41
- package/build/godot/operations/editor_tools.gd +29 -13
- package/build/godot/operations/export_presets.gd +602 -4
- package/build/godot/operations/file_reads.gd +115 -18
- package/build/godot/operations/gdscript_analysis.gd +14 -0
- package/build/godot/operations/gdscript_authoring.gd +12 -2
- package/build/godot/operations/godot_operations.gd +18 -2
- package/build/godot/operations/import_pipeline.gd +20 -221
- package/build/godot/operations/input_actions.gd +127 -51
- package/build/godot/operations/project_config.gd +113 -68
- package/build/godot/operations/project_diagnostics.gd +4 -0
- package/build/godot/operations/project_validation.gd +266 -0
- package/build/godot/operations/property_paths.gd +89 -16
- package/build/godot/operations/property_values.gd +180 -121
- package/build/godot/operations/reading.gd +112 -6
- package/build/godot/operations/scene_connections.gd +222 -0
- package/build/godot/operations/serialisation.gd +19 -29
- package/build/godot/operations/setting_reads.gd +121 -0
- package/build/godot/operations/value_shapes.gd +128 -1
- package/build/godot/tests/listed.gd +20 -13
- package/build/keeper.js +1402 -707
- package/package.json +1 -1
|
@@ -7,11 +7,15 @@ extends RefCounted
|
|
|
7
7
|
## made here passes the same checks and answers in the same shape. What the engine does that an
|
|
8
8
|
## editor does not, running every script, is put back in scene_file.gd and headless_check.gd.
|
|
9
9
|
|
|
10
|
+
const GdhAnimationStates = preload("../addons/gdharness_editor/tools/animation_states.gd")
|
|
10
11
|
const GdhAnimationTools = preload("../addons/gdharness_editor/tools/animation_tools.gd")
|
|
12
|
+
const GdhAnimationTracks = preload("../addons/gdharness_editor/tools/animation_tracks.gd")
|
|
11
13
|
const GdhResourceTools = preload("../addons/gdharness_editor/tools/resource_tools.gd")
|
|
12
14
|
const GdhSceneTools = preload("../addons/gdharness_editor/tools/scene_tools.gd")
|
|
13
15
|
const GdhSignalTools = preload("../addons/gdharness_editor/tools/signal_tools.gd")
|
|
16
|
+
const GdhTilesetTools = preload("../addons/gdharness_editor/tools/tileset_tools.gd")
|
|
14
17
|
const GdhSceneFile = preload("../addons/gdharness_editor/scene_file.gd")
|
|
18
|
+
const GdhSceneUids = preload("../addons/gdharness_editor/scene_uids.gd")
|
|
15
19
|
|
|
16
20
|
const SCENE_COMMANDS: Array[String] = [
|
|
17
21
|
"create_scene",
|
|
@@ -22,25 +26,30 @@ const SCENE_COMMANDS: Array[String] = [
|
|
|
22
26
|
"duplicate_node",
|
|
23
27
|
"reparent_node",
|
|
24
28
|
"delete_node",
|
|
29
|
+
"bake_navigation",
|
|
25
30
|
]
|
|
26
31
|
const SIGNAL_COMMANDS: Array[String] = ["connect_signal", "disconnect_signal", "list_connections"]
|
|
27
32
|
const RESOURCE_COMMANDS: Array[String] = [
|
|
28
|
-
"set_tilemap_cells",
|
|
29
33
|
"create_resource",
|
|
30
34
|
"modify_resource",
|
|
31
35
|
"create_shader",
|
|
32
|
-
"create_tileset",
|
|
33
36
|
"set_theme_color",
|
|
34
37
|
"set_theme_font_size",
|
|
38
|
+
"remove_theme_item",
|
|
35
39
|
]
|
|
40
|
+
const TILESET_COMMANDS: Array[String] = ["create_tileset", "set_tilemap_cells"]
|
|
36
41
|
const ANIMATION_COMMANDS: Array[String] = [
|
|
37
42
|
"create_animation",
|
|
38
|
-
"add_animation_track",
|
|
39
43
|
"set_animation",
|
|
40
44
|
"rename_animation",
|
|
41
45
|
"remove_animation",
|
|
46
|
+
]
|
|
47
|
+
const ANIMATION_TRACK_COMMANDS: Array[String] = ["add_animation_track", "remove_animation_track"]
|
|
48
|
+
const ANIMATION_STATE_COMMANDS: Array[String] = [
|
|
42
49
|
"add_animation_state",
|
|
43
50
|
"connect_animation_states",
|
|
51
|
+
"remove_animation_state",
|
|
52
|
+
"disconnect_animation_states",
|
|
44
53
|
]
|
|
45
54
|
|
|
46
55
|
|
|
@@ -58,28 +67,35 @@ static func run(params: Dictionary) -> Dictionary:
|
|
|
58
67
|
tools = GdhSignalTools.new()
|
|
59
68
|
elif command in RESOURCE_COMMANDS:
|
|
60
69
|
tools = GdhResourceTools.new()
|
|
70
|
+
elif command in TILESET_COMMANDS:
|
|
71
|
+
tools = GdhTilesetTools.new()
|
|
61
72
|
elif command in ANIMATION_COMMANDS:
|
|
62
73
|
tools = GdhAnimationTools.new()
|
|
74
|
+
elif command in ANIMATION_TRACK_COMMANDS:
|
|
75
|
+
tools = GdhAnimationTracks.new()
|
|
76
|
+
elif command in ANIMATION_STATE_COMMANDS:
|
|
77
|
+
tools = GdhAnimationStates.new()
|
|
63
78
|
else:
|
|
64
79
|
return {"ok": false, "error": "No editor tool runs headless as " + command}
|
|
65
80
|
var answer: Variant = tools.call(command, arguments)
|
|
66
81
|
tools.free()
|
|
67
82
|
if answer is Dictionary:
|
|
68
83
|
var answered: Dictionary = answer
|
|
69
|
-
if not GdhSceneFile.
|
|
84
|
+
if not GdhSceneFile.also_saved.is_empty():
|
|
85
|
+
answered["alsoSaved"] = GdhSceneFile.also_saved.duplicate(true)
|
|
86
|
+
if not GdhSceneUids.by_path.is_empty():
|
|
70
87
|
answered["namedByPath"] = (
|
|
71
88
|
(
|
|
72
|
-
"
|
|
73
|
-
+ "through the project's uid cache, which holds none for %s yet, as with a
|
|
74
|
-
+ "made since the project was last scanned, and a uid it does not hold would
|
|
75
|
-
+ "on every load. project_import refresh_uids scans the project, and writes
|
|
76
|
-
+ "it name %s by uid."
|
|
89
|
+
"What this saved names %s by path rather than by uid. A uid in a file's own header is "
|
|
90
|
+
+ "resolved through the project's uid cache, which holds none for %s yet, as with a "
|
|
91
|
+
+ "file made since the project was last scanned, and a uid it does not hold would "
|
|
92
|
+
+ "warn on every load. project_import refresh_uids scans the project, and writes "
|
|
93
|
+
+ "after it name %s by uid."
|
|
77
94
|
)
|
|
78
95
|
% [
|
|
79
|
-
", ".join(
|
|
80
|
-
"
|
|
81
|
-
"it" if
|
|
82
|
-
"it" if GdhSceneFile.by_path.size() == 1 else "them",
|
|
96
|
+
", ".join(GdhSceneUids.by_path),
|
|
97
|
+
"it" if GdhSceneUids.by_path.size() == 1 else "them",
|
|
98
|
+
"it" if GdhSceneUids.by_path.size() == 1 else "them",
|
|
83
99
|
]
|
|
84
100
|
)
|
|
85
101
|
return answered
|