// Copyright (c) 2007-2017 ppy Pty Ltd . // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System; namespace osu.Game.Beatmaps.ControlPoints { public class ControlPoint : IComparable, IEquatable { /// /// The time at which the control point takes effect. /// public double Time; public int CompareTo(ControlPoint other) => Time.CompareTo(other.Time); public bool Equals(ControlPoint other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return Time.Equals(other.Time); } } }