aboutsummaryrefslogtreecommitdiff
path: root/game/src/MusicConductor/SongInfo.gd
diff options
context:
space:
mode:
Diffstat (limited to 'game/src/MusicConductor/SongInfo.gd')
-rw-r--r--game/src/MusicConductor/SongInfo.gd11
1 files changed, 11 insertions, 0 deletions
diff --git a/game/src/MusicConductor/SongInfo.gd b/game/src/MusicConductor/SongInfo.gd
new file mode 100644
index 0000000..85ef96a
--- /dev/null
+++ b/game/src/MusicConductor/SongInfo.gd
@@ -0,0 +1,11 @@
+extends Node
+class_name SongInfo
+
+var fullyQualifiedPath : String = ""
+var readableName : String = ""
+var loadedStream : Resource
+
+func _init(dirname:String, fname:String):
+ fullyQualifiedPath = dirname + fname
+ readableName = fname.get_basename().replace("_", " ")
+ loadedStream = load(fullyQualifiedPath)