using osu.Game.Beatmaps.Timing;
using osu.Game.Database;
namespace osu.Game.Modes.Taiko.Objects
{
public class BarLine
{
///
/// The start time of the control point this bar line represents.
///
public double StartTime;
///
/// The time to scroll in the bar line.
///
public double PreEmpt;
///
/// Whether this is a major bar line (affects display).
///
public bool IsMajor;
public void ApplyDefaults(TimingInfo timing, BeatmapDifficulty difficulty)
{
PreEmpt = 600 / (timing.SliderVelocityAt(StartTime) * difficulty.SliderMultiplier) * 1000;
}
}
}