mirror of
https://github.com/wshobson/agents.git
synced 2026-03-18 09:37:15 +00:00
style: format all files with prettier
This commit is contained in:
@@ -785,6 +785,7 @@ func _on_off_screen() -> void:
|
||||
## Best Practices
|
||||
|
||||
### Do's
|
||||
|
||||
- **Use signals for decoupling** - Avoid direct references
|
||||
- **Type everything** - Static typing catches errors
|
||||
- **Use resources for data** - Separate data from logic
|
||||
@@ -792,6 +793,7 @@ func _on_off_screen() -> void:
|
||||
- **Use Autoloads sparingly** - Only for truly global systems
|
||||
|
||||
### Don'ts
|
||||
|
||||
- **Don't use `get_node()` in loops** - Cache references
|
||||
- **Don't couple scenes tightly** - Use signals
|
||||
- **Don't put logic in resources** - Keep them data-only
|
||||
|
||||
Reference in New Issue
Block a user