Files
WacK/Scripts/Scenes/Play.cs
T

38 lines
689 B
C#
Raw Normal View History

2023-07-30 00:22:03 -07:00
using Godot;
2023-09-15 12:00:12 -07:00
using WacK.Data.Chart;
using WacK.Data.Mer;
2023-07-30 00:22:03 -07:00
namespace WacK.Scenes
{
public class PlayParameters
{
/* TODO: store song ID from internal database
public string songID;
public Difficulty diff;
*/
public string chartPath;
public string soundPath;
public PlayParameters(string chPath, string snPath)
{
chartPath = chPath;
soundPath = snPath;
}
}
public partial class Play : Node
{
// initialized by another scene, BEFORE loading this one!
public static PlayParameters playParams;
2023-09-15 12:00:12 -07:00
private Chart chart;
2023-07-30 00:22:03 -07:00
2023-09-15 12:00:12 -07:00
public override void _Ready()
{
chart = new(playParams.chartPath);
}
2023-07-30 00:22:03 -07:00
private void OnDestroy()
{
playParams = null;
}
}
}