2018-04-13 17:19:50 +08:00
|
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
|
|
public int CompareTo(ControlPoint other) => Time.CompareTo(other.Time);
|
|
|
|
|
|
|
|
|
|
public bool Equals(ControlPoint other) => Time.Equals(other?.Time);
|
|
|
|
|
}
|
|
|
|
|
}
|