2022-01-19 07:33:33 +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.
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Difficulty
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Data for generating a performance breakdown by comparing performance to a perfect play.
|
|
|
|
/// </summary>
|
|
|
|
public class PerformanceBreakdown
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Actual gameplay performance.
|
|
|
|
/// </summary>
|
|
|
|
public PerformanceAttributes Performance { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Performance of a perfect play for comparison.
|
|
|
|
/// </summary>
|
|
|
|
public PerformanceAttributes PerfectPerformance { get; set; }
|
2023-06-28 08:52:08 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Create a new performance breakdown.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="performance">Actual gameplay performance.</param>
|
|
|
|
/// <param name="perfectPerformance">Performance of a perfect play for comparison.</param>
|
|
|
|
public PerformanceBreakdown(PerformanceAttributes performance, PerformanceAttributes perfectPerformance)
|
|
|
|
{
|
|
|
|
Performance = performance;
|
|
|
|
PerfectPerformance = perfectPerformance;
|
|
|
|
}
|
2022-01-19 07:33:33 +00:00
|
|
|
}
|
|
|
|
}
|