35 lines
577 B
C#
35 lines
577 B
C#
|
|
using Godot;
|
||
|
|
|
||
|
|
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;
|
||
|
|
|
||
|
|
private void Start()
|
||
|
|
{
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
private void OnDestroy()
|
||
|
|
{
|
||
|
|
playParams = null;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|