2018-01-05 19:21:19 +08:00
|
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
2017-05-23 12:55:18 +08:00
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
2017-05-23 14:20:32 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
2017-05-23 12:55:18 +08:00
|
|
|
|
namespace osu.Game.Beatmaps.ControlPoints
|
|
|
|
|
{
|
2017-07-18 16:45:27 +08:00
|
|
|
|
public class ControlPoint : IComparable<ControlPoint>, IEquatable<ControlPoint>
|
2017-05-23 12:55:18 +08:00
|
|
|
|
{
|
2017-05-23 13:11:37 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The time at which the control point takes effect.
|
|
|
|
|
/// </summary>
|
2017-05-23 12:55:18 +08:00
|
|
|
|
public double Time;
|
2017-05-23 14:20:32 +08:00
|
|
|
|
|
|
|
|
|
public int CompareTo(ControlPoint other) => Time.CompareTo(other.Time);
|
2017-07-18 16:45:27 +08:00
|
|
|
|
|
2017-07-19 17:01:47 +08:00
|
|
|
|
public bool Equals(ControlPoint other) => Time.Equals(other?.Time);
|
2017-05-23 12:55:18 +08:00
|
|
|
|
}
|
|
|
|
|
}
|