// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; namespace osu.Game.Rulesets.Difficulty { /// /// Wraps a object and adds a time value for which the attribute is valid. /// Output by DifficultyCalculator.CalculateTimed methods. /// public class TimedDifficultyAttributes : IComparable { /// /// The non-clock-adjusted time value at which the attributes take effect. /// public readonly double Time; /// /// The attributes. /// public readonly DifficultyAttributes Attributes; /// /// Creates new . /// /// The non-clock-adjusted time value at which the attributes take effect. /// The attributes. public TimedDifficultyAttributes(double time, DifficultyAttributes attributes) { Time = time; Attributes = attributes; } public int CompareTo(TimedDifficultyAttributes other) => Time.CompareTo(other.Time); } }