mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 22:27:25 +08:00
30 lines
1.1 KiB
C#
30 lines
1.1 KiB
C#
// 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.Rulesets.Timing;
|
|
|
|
namespace osu.Game.Rulesets.Mania.Timing
|
|
{
|
|
public class ManiaSpeedAdjustmentContainer : SpeedAdjustmentContainer
|
|
{
|
|
private readonly ScrollingAlgorithm scrollingAlgorithm;
|
|
|
|
public ManiaSpeedAdjustmentContainer(MultiplierControlPoint timingSection, ScrollingAlgorithm scrollingAlgorithm)
|
|
: base(timingSection)
|
|
{
|
|
this.scrollingAlgorithm = scrollingAlgorithm;
|
|
}
|
|
|
|
protected override DrawableTimingSection CreateTimingSection()
|
|
{
|
|
switch (scrollingAlgorithm)
|
|
{
|
|
default:
|
|
case ScrollingAlgorithm.Basic:
|
|
return new BasicScrollingDrawableTimingSection(ControlPoint);
|
|
case ScrollingAlgorithm.Gravity:
|
|
return new GravityScrollingDrawableTimingSection(ControlPoint);
|
|
}
|
|
}
|
|
}
|
|
} |