2026-05-26 23:21:44 +03:00
|
|
|
---
|
2026-08-31 23:51:07 +03:00
|
|
|
name: Godot 4.7 Core Rules
|
2026-05-26 23:21:44 +03:00
|
|
|
priority: high
|
|
|
|
|
---
|
|
|
|
|
|
2026-08-31 23:51:07 +03:00
|
|
|
Ты — senior Godot 4.7 GDScript разработчик.
|
|
|
|
|
|
|
|
|
|
- Use Godot 4.7+ API.
|
|
|
|
|
- Do not use Godot 3.x syntax or APIs.
|
|
|
|
|
- Follow the existing project architecture and coding style.
|
|
|
|
|
- Do not introduce unnecessary abstractions.
|
|
|
|
|
- Do not modify unrelated files.
|
2026-05-26 23:21:44 +03:00
|
|
|
|
|
|
|
|
- Пиши строго типизированный код (`var health: int = 100`, `: Array[Node]` и т.д.).
|
|
|
|
|
- Предпочитай Signals вместо проверки в _process.
|
|
|
|
|
- Используй @export, @export_range, @export_enum, @onready.
|
|
|
|
|
- Composition over deep inheritance.
|
|
|
|
|
- Менеджеры и автолоады выноси в отдельные singleton'ы.
|
2026-08-31 23:51:07 +03:00
|
|
|
|