aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/MusicConductor/MusicConductor.gd
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-03-03 17:39:08 +0100
committer hop311 <hop3114@gmail.com>2024-03-03 17:39:08 +0100
commite2077a0d93be8b2dd48f1ee680809420f1f690d7 (patch)
treebacc8f4094eff5514a94b3852e9cec9c28391669 /game/src/Game/MusicConductor/MusicConductor.gd
parent9ee1940ac3d15aa4c0a87b84d1c4ab8958184f63 (diff)
Add types to GDScript for-loop variablesfor-loop-types
Diffstat (limited to 'game/src/Game/MusicConductor/MusicConductor.gd')
-rw-r--r--game/src/Game/MusicConductor/MusicConductor.gd6
1 files changed, 3 insertions, 3 deletions
diff --git a/game/src/Game/MusicConductor/MusicConductor.gd b/game/src/Game/MusicConductor/MusicConductor.gd
index abfc52f..b4b660a 100644
--- a/game/src/Game/MusicConductor/MusicConductor.gd
+++ b/game/src/Game/MusicConductor/MusicConductor.gd
@@ -23,9 +23,9 @@ var is_music_player_visible : bool = true
var _has_startup_happened : bool = false
-func get_all_song_names() -> Array[String]:
- var songNames : Array[String] = []
- for si in _available_songs:
+func get_all_song_names() -> PackedStringArray:
+ var songNames : PackedStringArray = []
+ for si : SongInfo in _available_songs:
songNames.append(si.song_name)
return songNames