Fix gdlint findings in Global / Database / Levels
- Global.gd: move @onready var animation below the regular vars
(gdlint class-definitions-order expects onready vars after
public/private vars).
- Database.gd::DB: move the three _*_PROPS constants above the vars
(constants come before vars in a class body).
- Levels.gd:_search_button_to_use: drop the elif after a branch
that returns (no-elif-return).
- Levels.gd:_gyroscope_changed_{down,up}: continuation lines of the
multi-line return mixed two tabs + three spaces; normalised to
pure tabs.
No semantic change: @onready is property-level so source ordering
doesn't affect init; elif after a return is equivalent to if; the
continuation indent is cosmetic.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
+5
-5
@@ -9,11 +9,6 @@ extends Node
|
||||
# (per-scene lock state) persists across runs.
|
||||
|
||||
class DB extends RefCounted:
|
||||
var settings: SettingsData
|
||||
var levels: Array[LevelEntry] = []
|
||||
var scenes: Array[SceneEntry] = []
|
||||
var _path: String
|
||||
|
||||
const _SETTINGS_PROPS := [
|
||||
{"name": "langue", "type": "1", "auto_increment": "0"},
|
||||
{"name": "gyroscope", "type": "0", "auto_increment": "0"},
|
||||
@@ -36,6 +31,11 @@ class DB extends RefCounted:
|
||||
{"name": "counter", "type": "1", "auto_increment": "0"},
|
||||
]
|
||||
|
||||
var settings: SettingsData
|
||||
var levels: Array[LevelEntry] = []
|
||||
var scenes: Array[SceneEntry] = []
|
||||
var _path: String
|
||||
|
||||
func _init(path: String) -> void:
|
||||
_path = path
|
||||
var f := FileAccess.open(path, FileAccess.READ)
|
||||
|
||||
Reference in New Issue
Block a user