aboutsummaryrefslogtreecommitdiff
path: root/game/src/MusicConductor/SongInfo.gd
blob: 1ee9adce5479011f9a7eddc68fd5c0265112931d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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)