1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-19 05:22:57 +08:00
osu-lazer/osu.Game.Rulesets.Mania/Timing/BasicScrollingDrawableTimingSection.cs

27 lines
782 B
C#
Raw Normal View History

// 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.Framework.Graphics;
using osu.Game.Rulesets.Timing;
2017-06-09 15:20:55 +08:00
namespace osu.Game.Rulesets.Mania.Timing
{
internal class BasicScrollingDrawableTimingSection : DrawableTimingSection
{
private readonly MultiplierControlPoint timingSection;
public BasicScrollingDrawableTimingSection(MultiplierControlPoint timingSection)
: base(Axes.Y)
{
this.timingSection = timingSection;
}
protected override void Update()
{
base.Update();
Y = (float)(timingSection.StartTime - Time.Current);
}
}
}