Add FSM components for player and enemy state management, including initialization and module resolution

This commit is contained in:
MaddoScientisto 2026-02-26 23:13:57 +01:00
commit b6cc5a00e8
57 changed files with 526 additions and 506 deletions

View file

@ -1,4 +1,4 @@
@tool
@tool
class_name BaseViewer
extends PanelContainer
@ -173,4 +173,3 @@ func _should_show_3d() -> bool:
func _log_to_dock(message: String, color: Color = Color.WHITE) -> void:
if _dock and _dock.has_method("add_log"):
_dock.call("add_log", message, color)

View file

@ -1,4 +1,4 @@
@tool
@tool
extends BaseCreatorDialog
# Popup window for configuring bullet parameters before creation
@ -371,4 +371,3 @@ func _show_error(message: String) -> void:
dialog.title = "Error"
add_child(dialog)
dialog.popup_centered()

View file

@ -1,4 +1,4 @@
@tool
@tool
extends BaseViewer
# Displays all bullets from the Resources/Bullets folders in a grid format
@ -330,4 +330,3 @@ func _open_bullet_dialog(is_3d: bool, prefill_data: Dictionary = {}) -> void:
dialog.call_deferred("setup_bullet", _editor_interface, is_3d, prefill_data)
dialog.call_deferred("connect", "bullet_data_confirmed", _on_duplicate_bullet_confirmed)
dialog.call_deferred("popup_centered")

View file

@ -1,4 +1,4 @@
@tool
@tool
extends BaseCreatorDialog
signal enemy_data_confirmed(enemy_data: Dictionary)
@ -303,6 +303,3 @@ func _on_create_pressed() -> void:
_save_dialog_size_and_position()
enemy_data_confirmed.emit(enemy_data)
queue_free()

View file

@ -1,4 +1,4 @@
@tool
@tool
extends BaseViewer
# Displays all enemies from directory structure or database
@ -224,5 +224,3 @@ func _on_create_enemy_pressed() -> void:
dialog.enemy_data_confirmed.connect(func(enemy_data):
duplicate_enemy_requested.emit(enemy_data)
)

View file

@ -511,4 +511,3 @@ func _create_enemy_resource(path: String, enemy_data: Dictionary) -> bool:
return false
return true