aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/MusicConductor/SongInfo.gd
blob: abcf120c22a473eb8270325c8e1432251d315c9d (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) -> void:
      song_path = dirname.path_join(fname)
      song_name = fname.get_basename().replace("_", " ")
      song_stream = load(song_path)