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