HartoukChartEditor/Assets/Script/Interface/IPlayObject.cs

25 lines
804 B
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.

/// <summary>
/// 实现该接口的物件将具有可游玩物件的的特性,即可以被判定,并纳入总分数计算
/// </summary>
public interface IPlayObject
{
/// <summary>
/// 当前Note是否已经失效,当被标记为失效是将移除出管理器的判定序列
/// </summary>
public bool IsValid { get; set; }
/// <summary>
/// 自身物件数,用于分数统计
/// </summary>
public int ItemQuantity { get; set; }
public void CheckHit();
public void CheckMiss();
/// <summary>
/// 提供当前的Note的速度子类可以使用
/// </summary>
public BPMGroup SelfTiming { get; set; }
/// <summary>
/// 当游玩物件被判定时触发该事件
/// </summary>
public event JudgeEventHandler OnNoteJudged;
}