Add test case for bar lines.

This commit is contained in:
smoogipooo
2017-03-21 21:27:20 +09:00
parent e1f8f44b32
commit 9f3def05ef
3 changed files with 30 additions and 11 deletions

View File

@ -1,4 +1,7 @@
using osu.Game.Beatmaps.Timing;
// 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;
using osu.Game.Database;
namespace osu.Game.Modes.Taiko.Objects
@ -15,11 +18,6 @@ namespace osu.Game.Modes.Taiko.Objects
/// </summary>
public double PreEmpt;
/// <summary>
/// Whether this is a major bar line (affects display).
/// </summary>
public bool IsMajor;
public void ApplyDefaults(TimingInfo timing, BeatmapDifficulty difficulty)
{
PreEmpt = 600 / (timing.SliderVelocityAt(StartTime) * difficulty.SliderMultiplier) * 1000;