Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -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'ы.
|
||||
@@ -0,0 +1,9 @@
|
||||
---
|
||||
name: Project Architecture
|
||||
---
|
||||
|
||||
В этом проекте используется следующая архитектура:
|
||||
- StateMachine на основе Node + signals
|
||||
- Inventory использует ItemStack и SignalBus
|
||||
- Все данные сохраняются через SaveManager (autoload)
|
||||
- UI строится через Control + custom themes
|
||||
Reference in New Issue
Block a user