using RhythmBase.Adofai.Components;
using RhythmBase.Adofai.Events;
using RhythmBase.Extensions;
namespace RhythmBase.Adofai.Utils
{
///
/// Beat Calculator.
///
public class ADBeatCalculator
{
internal ADBeatCalculator(ADLevel level)
{
Collection = level;
Refresh();
}
private void Refresh()
{
_DefaultBpm = Collection.Settings.Bpm;
_MidSpins = Collection.Where((i) => i.IsMidSpin).ToList();
////this._SetSpeeds = this.Collection.EventsWhere().ToList();
////this._Twirls = this.Collection.EventsWhere().ToList();
////this._Pauses = this.Collection.EventsWhere().ToList();
////this._Holds = this.Collection.EventsWhere().ToList();
////this._Freeroams = this.Collection.EventsWhere().ToList();
}
#pragma warning disable IDE0052 // 删除未读的私有成员
internal ADLevel Collection;
private float _DefaultBpm = 100;
private List _MidSpins = [];
private readonly List _SetSpeeds = [];
private readonly List _Twirls = [];
private readonly List _Pauses = [];
private readonly List _Holds = [];
private readonly List _Freeroams = [];
#pragma warning restore IDE0052 // 删除未读的私有成员
}
}