Files
SoulliesOfficial b5cb6152ff MusicBeat
2026-05-26 00:21:27 -04:00

47 lines
1.2 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
namespace Cielonos.MainGame
{
/// <summary>
/// 节拍判定精度等级
/// </summary>
public enum BeatAccuracy
{
Perfect,
Good,
Miss
}
/// <summary>
/// 节拍判定结果,包含精度、时间差和对应节拍标记信息
/// </summary>
public struct BeatJudgement
{
/// <summary>
/// 判定精度等级
/// </summary>
public BeatAccuracy accuracy;
/// <summary>
/// 操作时间与最近节拍的时间差(秒),正值表示偏晚,负值表示偏早
/// </summary>
public float timeDiff;
/// <summary>
/// 最近的节拍标记
/// </summary>
public BeatMarker nearestBeat;
/// <summary>
/// 归一化精度值0 = 完美卡拍1 = 窗口边缘
/// </summary>
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;
}
}
}