From cef940108fe15752c3ef66f43f5169403fa2f71d Mon Sep 17 00:00:00 2001 From: Spartan322 Date: Sat, 3 Jun 2023 14:37:10 -0400 Subject: Reorganize the file structure of the files in `game/src` --- game/src/Game/MusicConductor/SongInfo.gd | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 game/src/Game/MusicConductor/SongInfo.gd (limited to 'game/src/Game/MusicConductor/SongInfo.gd') diff --git a/game/src/Game/MusicConductor/SongInfo.gd b/game/src/Game/MusicConductor/SongInfo.gd new file mode 100644 index 0000000..1ee9adc --- /dev/null +++ b/game/src/Game/MusicConductor/SongInfo.gd @@ -0,0 +1,11 @@ +extends Resource +class_name SongInfo + +var song_path : String = "" +var song_name : String = "" +var song_stream : Resource + +func _init(dirname:String, fname:String): + song_path = dirname.path_join(fname) + song_name = fname.get_basename().replace("_", " ") + song_stream = load(song_path) -- cgit v1.2.3-56-ga3b1