1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-26 11:43:21 +08:00
osu-lazer/osu.Game/Scoring/HitResultDisplayStatistic.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1.3 KiB
C#
Raw Normal View History

2020-10-07 14:34:03 +08: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-06-17 15:37:17 +08:00
#nullable disable
2022-08-15 02:54:02 +08:00
using osu.Framework.Localisation;
2020-10-07 14:34:03 +08:00
using osu.Game.Rulesets.Scoring;
namespace osu.Game.Scoring
{
/// <summary>
/// Compiled result data for a specific <see cref="HitResult"/> in a score.
/// </summary>
public class HitResultDisplayStatistic
{
/// <summary>
/// The associated result type.
/// </summary>
public HitResult Result { get; }
/// <summary>
/// The count of successful hits of this type.
/// </summary>
public int Count { get; }
/// <summary>
/// The maximum achievable hits of this type. May be null if undetermined.
/// </summary>
public int? MaxCount { get; }
/// <summary>
/// A custom display name for the result type. May be provided by rulesets to give better clarity.
/// </summary>
2022-08-15 02:54:02 +08:00
public LocalisableString DisplayName { get; }
2020-10-07 14:34:03 +08:00
2022-08-15 02:54:02 +08:00
public HitResultDisplayStatistic(HitResult result, int count, int? maxCount, LocalisableString displayName)
2020-10-07 14:34:03 +08:00
{
Result = result;
Count = count;
MaxCount = maxCount;
DisplayName = displayName;
}
}
}