diff options
author | George L. Albany <Megacake1234@gmail.com> | 2023-06-04 02:17:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-04 02:17:28 +0200 |
commit | 3236f51d700674aee6ee6572109ffb3d5fa5fed2 (patch) | |
tree | b898150a8a45e7c0d814459e7f12f39429acefeb /game/src/Game/MusicConductor/SongInfo.gd | |
parent | 73e29d02e48739aba5ca5db1b9575c67e795400f (diff) | |
parent | b98166b28c47cccff731d30959b8250fb27ff408 (diff) |
Merge pull request #130 from Spartan322/organize/godot-project
Diffstat (limited to 'game/src/Game/MusicConductor/SongInfo.gd')
-rw-r--r-- | game/src/Game/MusicConductor/SongInfo.gd | 11 |
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) |