2017-03-21 20:27:20 +08:00
|
|
|
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
|
|
using osu.Game.Beatmaps.Timing;
|
2017-03-21 17:44:07 +08:00
|
|
|
|
using osu.Game.Database;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Modes.Taiko.Objects
|
|
|
|
|
{
|
|
|
|
|
public class BarLine
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The start time of the control point this bar line represents.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public double StartTime;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The time to scroll in the bar line.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public double PreEmpt;
|
|
|
|
|
|
|
|
|
|
public void ApplyDefaults(TimingInfo timing, BeatmapDifficulty difficulty)
|
|
|
|
|
{
|
2017-04-03 13:49:26 +08:00
|
|
|
|
PreEmpt = TaikoHitObject.BASE_SCROLL_TIME / difficulty.SliderMultiplier * timing.BeatLengthAt(StartTime) * timing.SpeedMultiplierAt(StartTime) / 1000;
|
2017-03-21 17:44:07 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|