1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 17:57:29 +08:00
osu-lazer/osu.Game.Rulesets.Taiko/Difficulty/TaikoPerformanceAttributes.cs

34 lines
1.2 KiB
C#
Raw Normal View History

2021-12-21 18:08:31 +08: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.
using System.Collections.Generic;
2021-12-21 18:08:31 +08:00
using Newtonsoft.Json;
using osu.Game.Rulesets.Difficulty;
namespace osu.Game.Rulesets.Taiko.Difficulty
{
public class TaikoPerformanceAttributes : PerformanceAttributes
{
[JsonProperty("difficulty")]
public double Difficulty { get; set; }
[JsonProperty("accuracy")]
public double Accuracy { get; set; }
2022-08-19 20:57:40 +08:00
[JsonProperty("effective_miss_count")]
public double EffectiveMissCount { get; set; }
2022-10-27 12:07:32 +08:00
2024-05-29 21:40:59 +08:00
[JsonProperty("estimated_unstable_rate")]
public double? EstimatedUnstableRate { get; set; }
2022-08-19 20:57:40 +08:00
public override IEnumerable<PerformanceDisplayAttribute> GetAttributesForDisplay()
{
foreach (var attribute in base.GetAttributesForDisplay())
yield return attribute;
yield return new PerformanceDisplayAttribute(nameof(Difficulty), "Difficulty", Difficulty);
yield return new PerformanceDisplayAttribute(nameof(Accuracy), "Accuracy", Accuracy);
}
2021-12-21 18:08:31 +08:00
}
}