diff options
Diffstat (limited to 'game/src/Game/Autoload/SoundManager.gd')
-rw-r--r-- | game/src/Game/Autoload/SoundManager.gd | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/game/src/Game/Autoload/SoundManager.gd b/game/src/Game/Autoload/SoundManager.gd index c58ce1a..a8a8e80 100644 --- a/game/src/Game/Autoload/SoundManager.gd +++ b/game/src/Game/Autoload/SoundManager.gd @@ -11,9 +11,9 @@ var _bus_to_stream_player : Dictionary = {} # REQUIREMENTS: # * SND-10 -func _ready(): - var dir = DirAccess.open(_audio_directory_path) - for fname in dir.get_files(): +func _ready() -> void: + var dir := DirAccess.open(_audio_directory_path) + for fname : String in dir.get_files(): match fname.get_extension(): "ogg", "wav", "mp3": _loaded_sound[fname.get_basename()] = load(_audio_directory_path.path_join(fname)) # SND-10 |