2019-01-24 16:43:03 +08:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Beatmaps.ControlPoints
|
|
|
|
|
{
|
|
|
|
|
public class ControlPoint : IComparable<ControlPoint>, IEquatable<ControlPoint>
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The time at which the control point takes effect.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public double Time;
|
|
|
|
|
|
2019-05-08 17:13:07 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Whether this timing point was generated internally, as opposed to parsed from the underlying beatmap.
|
|
|
|
|
/// </summary>
|
|
|
|
|
internal bool AutoGenerated;
|
|
|
|
|
|
2018-04-13 17:19:50 +08:00
|
|
|
|
public int CompareTo(ControlPoint other) => Time.CompareTo(other.Time);
|
|
|
|
|
|
2018-07-02 12:33:59 +08:00
|
|
|
|
public bool Equals(ControlPoint other)
|
2019-05-21 13:27:57 +08:00
|
|
|
|
=> Time.Equals(other?.Time);
|
2018-04-13 17:19:50 +08:00
|
|
|
|
}
|
|
|
|
|
}
|