// Copyright (c) ppy Pty Ltd . 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; namespace osu.Game.Rulesets.Difficulty { public class PerformanceAttributes { /// /// Calculated score performance points. /// [JsonProperty("pp")] public double Total { get; set; } /// /// Return a for each attribute so that a performance breakdown can be displayed. /// Some attributes may be omitted if they are not meant for display. /// /// public virtual IEnumerable GetAttributesForDisplay() { yield return new PerformanceDisplayAttribute(nameof(Total), "Achieved PP", Total); } } }