1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-19 10:52:55 +08:00
osu-lazer/osu.Game.Rulesets.Mania/Timing/Drawables/BasicScrollingHitObjectCollection.cs

28 lines
806 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;
using osu.Game.Rulesets.Timing.Drawables;
namespace osu.Game.Rulesets.Mania.Timing.Drawables
{
internal class BasicScrollingHitObjectCollection : HitObjectCollection
{
private readonly TimingSection timingSection;
public BasicScrollingHitObjectCollection(TimingSection timingSection)
: base(Axes.Y)
{
this.timingSection = timingSection;
}
protected override void Update()
{
base.Update();
Y = (float)(timingSection.Time - Time.Current);
}
}
}