mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 23:07:44 +08:00
26 lines
812 B
C#
26 lines
812 B
C#
// 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.
|
|
|
|
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;
|
|
|
|
/// <summary>
|
|
/// Whether this timing point was generated internally, as opposed to parsed from the underlying beatmap.
|
|
/// </summary>
|
|
internal bool AutoGenerated;
|
|
|
|
public int CompareTo(ControlPoint other) => Time.CompareTo(other.Time);
|
|
|
|
public bool Equals(ControlPoint other)
|
|
=> Time.Equals(other?.Time);
|
|
}
|
|
}
|