2021-12-21 10:08:31 +00: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 10:28:17 +00:00
|
|
|
|
using System.Collections.Generic;
|
2021-12-21 10:08:31 +00: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-01-17 10:28:17 +00:00
|
|
|
|
|
2022-08-19 12:57:40 +00:00
|
|
|
|
[JsonProperty("effective_miss_count")]
|
|
|
|
|
public double EffectiveMissCount { get; set; }
|
|
|
|
|
|
2022-01-17 10:28:17 +00:00
|
|
|
|
public override IEnumerable<PerformanceDisplayAttribute> GetAttributesForDisplay()
|
|
|
|
|
{
|
|
|
|
|
foreach (var attribute in base.GetAttributesForDisplay())
|
|
|
|
|
yield return attribute;
|
|
|
|
|
|
2022-01-17 12:45:25 +00:00
|
|
|
|
yield return new PerformanceDisplayAttribute(nameof(Difficulty), "Difficulty", Difficulty);
|
|
|
|
|
yield return new PerformanceDisplayAttribute(nameof(Accuracy), "Accuracy", Accuracy);
|
2022-01-17 10:28:17 +00:00
|
|
|
|
}
|
2021-12-21 10:08:31 +00:00
|
|
|
|
}
|
|
|
|
|
}
|