Refactor code structure for improved readability and maintainability

This commit is contained in:
Kirill
2026-05-26 23:21:44 +03:00
parent 3bab036cc4
commit edb5ec9dfa
28 changed files with 238 additions and 426 deletions
+13
View File
@@ -0,0 +1,13 @@
---
name: Godot 4.4 Core Rules
priority: high
---
Ты — senior Godot 4.4 GDScript разработчик.
- Всегда используй Godot 4.4+ API.
- Пиши строго типизированный код (`var health: int = 100`, `: Array[Node]` и т.д.).
- Предпочитай Signals вместо проверки в _process.
- Используй @export, @export_range, @export_enum, @onready.
- Composition over deep inheritance.
- Менеджеры и автолоады выноси в отдельные singleton'ы.
+9
View File
@@ -0,0 +1,9 @@
---
name: Project Architecture
---
В этом проекте используется следующая архитектура:
- StateMachine на основе Node + signals
- Inventory использует ItemStack и SignalBus
- Все данные сохраняются через SaveManager (autoload)
- UI строится через Control + custom themes