Initial commit. Implement music sync features.
This commit is contained in:
13
resource_type/song.gd
Normal file
13
resource_type/song.gd
Normal file
@@ -0,0 +1,13 @@
|
||||
## Represents a level for a music audio that may contain multiple charts.
|
||||
class_name Song extends Resource
|
||||
|
||||
var music: Music
|
||||
|
||||
var charts: Dictionary[StringName, Chart] = {}
|
||||
|
||||
|
||||
func has_music() -> bool:
|
||||
return music != null and music.stream != null
|
||||
|
||||
func has_chart() -> bool:
|
||||
return not charts.is_empty()
|
||||
Reference in New Issue
Block a user