mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 11:27:24 +08:00
33 lines
1.1 KiB
C#
33 lines
1.1 KiB
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.
|
|
|
|
#nullable disable
|
|
|
|
using System.Collections.Generic;
|
|
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; }
|
|
|
|
[JsonProperty("effective_miss_count")]
|
|
public double EffectiveMissCount { get; set; }
|
|
|
|
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);
|
|
}
|
|
}
|
|
}
|