2018-01-05 19:21:19 +08:00
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
2017-05-23 13:11:37 +08:00
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
2018-02-28 21:53:16 +08:00
|
|
|
using OpenTK;
|
2017-05-23 12:55:18 +08:00
|
|
|
using osu.Game.Beatmaps.Timing;
|
|
|
|
|
|
|
|
namespace osu.Game.Beatmaps.ControlPoints
|
|
|
|
{
|
|
|
|
public class TimingControlPoint : ControlPoint
|
|
|
|
{
|
2017-05-23 13:11:37 +08:00
|
|
|
/// <summary>
|
|
|
|
/// The time signature at this control point.
|
|
|
|
/// </summary>
|
2017-05-23 12:55:18 +08:00
|
|
|
public TimeSignatures TimeSignature = TimeSignatures.SimpleQuadruple;
|
2017-05-23 13:11:37 +08:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The beat length at this control point.
|
|
|
|
/// </summary>
|
2018-02-28 21:53:16 +08:00
|
|
|
public double BeatLength
|
|
|
|
{
|
|
|
|
get => beatLength;
|
|
|
|
set => beatLength = MathHelper.Clamp(value, 100, 60000);
|
|
|
|
}
|
|
|
|
|
|
|
|
private double beatLength = 1000;
|
2017-05-23 12:55:18 +08:00
|
|
|
}
|
2018-01-05 19:21:19 +08:00
|
|
|
}
|