aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/MusicConductor/SongInfo.gd
diff options
context:
space:
mode:
Diffstat (limited to 'game/src/Game/MusicConductor/SongInfo.gd')
-rw-r--r--game/src/Game/MusicConductor/SongInfo.gd11
1 files changed, 11 insertions, 0 deletions
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)