2021-12-21 13:08:31 +03:00
|
|
|
|
// 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.
|
|
|
|
|
|
2022-01-17 18:28:17 +08:00
|
|
|
|
using System.Collections.Generic;
|
2021-12-21 13:08:31 +03:00
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using osu.Game.Rulesets.Difficulty;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Mania.Difficulty
|
|
|
|
|
{
|
|
|
|
|
public class ManiaPerformanceAttributes : PerformanceAttributes
|
|
|
|
|
{
|
|
|
|
|
[JsonProperty("difficulty")]
|
|
|
|
|
public double Difficulty { get; set; }
|
|
|
|
|
|
2022-10-12 21:33:08 -04:00
|
|
|
|
[JsonProperty("estimated_ur")]
|
2023-02-12 19:05:52 -05:00
|
|
|
|
public double? EstimatedUr { get; set; }
|
2022-10-12 21:33:08 -04:00
|
|
|
|
|
2023-03-05 21:35:36 -05:00
|
|
|
|
[JsonProperty("hit_windows")]
|
2023-08-02 00:51:28 -04:00
|
|
|
|
public double[] HitWindows { get; set; } = null!;
|
2023-03-05 21:35:36 -05:00
|
|
|
|
|
2022-01-17 18:28:17 +08:00
|
|
|
|
public override IEnumerable<PerformanceDisplayAttribute> GetAttributesForDisplay()
|
|
|
|
|
{
|
|
|
|
|
foreach (var attribute in base.GetAttributesForDisplay())
|
|
|
|
|
yield return attribute;
|
|
|
|
|
|
2022-01-17 20:45:25 +08:00
|
|
|
|
yield return new PerformanceDisplayAttribute(nameof(Difficulty), "Difficulty", Difficulty);
|
2022-01-17 18:28:17 +08:00
|
|
|
|
}
|
2021-12-21 13:08:31 +03:00
|
|
|
|
}
|
|
|
|
|
}
|