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