namespace Cielonos.MainGame
{
///
/// 节拍判定精度等级
///
public enum BeatAccuracy
{
Perfect,
Good,
Miss
}
///
/// 节拍判定结果,包含精度、时间差和对应节拍标记信息
///
public struct BeatJudgement
{
///
/// 判定精度等级
///
public BeatAccuracy accuracy;
///
/// 操作时间与最近节拍的时间差(秒),正值表示偏晚,负值表示偏早
///
public float timeDiff;
///
/// 最近的节拍标记
///
public BeatMarker nearestBeat;
///
/// 归一化精度值:0 = 完美卡拍,1 = 窗口边缘
///
public float normalizedAccuracy;
public BeatJudgement(BeatAccuracy accuracy, float timeDiff, BeatMarker nearestBeat, float normalizedAccuracy)
{
this.accuracy = accuracy;
this.timeDiff = timeDiff;
this.nearestBeat = nearestBeat;
this.normalizedAccuracy = normalizedAccuracy;
}
}
}