mirror of
https://github.com/ppy/osu.git
synced 2025-01-18 14:52:56 +08:00
38 lines
1.3 KiB
C#
38 lines
1.3 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.
|
|
|
|
using System.Collections.Generic;
|
|
using Newtonsoft.Json;
|
|
using osu.Game.Rulesets.Difficulty;
|
|
|
|
namespace osu.Game.Rulesets.Taiko.Difficulty
|
|
{
|
|
public struct TaikoPerformanceAttributes : IPerformanceAttributes
|
|
{
|
|
/// <summary>
|
|
/// Calculated score performance points.
|
|
/// </summary>
|
|
[JsonProperty("pp")]
|
|
public double Total { get; set; }
|
|
|
|
[JsonProperty("difficulty")]
|
|
public double Difficulty { get; set; }
|
|
|
|
[JsonProperty("accuracy")]
|
|
public double Accuracy { get; set; }
|
|
|
|
[JsonProperty("effective_miss_count")]
|
|
public double EffectiveMissCount { get; set; }
|
|
|
|
[JsonProperty("estimated_unstable_rate")]
|
|
public double? EstimatedUnstableRate { get; set; }
|
|
|
|
public IEnumerable<PerformanceDisplayAttribute> GetAttributesForDisplay()
|
|
{
|
|
yield return new PerformanceDisplayAttribute(nameof(Total), "Achieved PP", Total);
|
|
yield return new PerformanceDisplayAttribute(nameof(Difficulty), "Difficulty", Difficulty);
|
|
yield return new PerformanceDisplayAttribute(nameof(Accuracy), "Accuracy", Accuracy);
|
|
}
|
|
}
|
|
}
|