2023-07-30 00:22:03 -07:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace WacK.Data.Chart
|
|
|
|
|
{
|
|
|
|
|
public enum NotePlayType
|
|
|
|
|
{
|
|
|
|
|
Touch,
|
|
|
|
|
HoldStart,
|
|
|
|
|
HoldMid,
|
|
|
|
|
HoldEnd,
|
2023-09-29 17:48:09 -07:00
|
|
|
Chain,
|
|
|
|
|
SnapIn,
|
|
|
|
|
SnapOut,
|
2023-07-30 00:22:03 -07:00
|
|
|
SwipeCW,
|
|
|
|
|
SwipeCCW,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Represents playable notes.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class NotePlay : Note
|
|
|
|
|
{
|
|
|
|
|
public NotePlayType type { get; private set; }
|
|
|
|
|
public bool isBonus { get; private set; }
|
|
|
|
|
public int holdIdx { get; private set; }
|
|
|
|
|
public int holdNextIdx { get; private set; }
|
|
|
|
|
|
|
|
|
|
public NotePlay(double time, MeasureBeat measureBeat, int position, int size, int holdIndex = -1, int holdNext = -1,
|
|
|
|
|
NotePlayType type = NotePlayType.Touch, bool bonus = false)
|
|
|
|
|
: base(time, measureBeat, position, size)
|
|
|
|
|
{
|
|
|
|
|
this.type = type;
|
|
|
|
|
this.isBonus = bonus;
|
|
|
|
|
this.holdIdx = holdIndex;
|
|
|
|
|
this.holdNextIdx = holdNext;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|