2018-01-05 19:21:19 +08:00
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
2017-05-23 14:29:38 +08:00
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
2018-02-28 17:06:27 +08:00
|
|
|
using OpenTK;
|
|
|
|
|
2017-05-23 12:55:18 +08:00
|
|
|
namespace osu.Game.Beatmaps.ControlPoints
|
|
|
|
{
|
|
|
|
public class DifficultyControlPoint : ControlPoint
|
|
|
|
{
|
2017-05-23 14:29:38 +08:00
|
|
|
/// <summary>
|
|
|
|
/// The speed multiplier at this control point.
|
|
|
|
/// </summary>
|
2018-02-28 17:06:27 +08:00
|
|
|
public double SpeedMultiplier
|
|
|
|
{
|
|
|
|
get => speedMultiplier;
|
|
|
|
set => speedMultiplier = MathHelper.Clamp(value, 0.1, 10);
|
|
|
|
}
|
|
|
|
|
|
|
|
private double speedMultiplier = 1;
|
2017-05-23 12:55:18 +08:00
|
|
|
}
|
2017-08-21 10:45:57 +08:00
|
|
|
}
|