Include PropertyName in PerformanceDisplayAttribute

This commit is contained in:
Henry Lin
2022-01-17 20:45:25 +08:00
parent d014fef179
commit b81fc675e8
5 changed files with 16 additions and 10 deletions

View File

@ -7,6 +7,11 @@ namespace osu.Game.Rulesets.Difficulty
/// </summary>
public class PerformanceDisplayAttribute
{
/// <summary>
/// Name of the attribute property in <see cref="PerformanceAttributes"/>.
/// </summary>
public string PropertyName { get; }
/// <summary>
/// A custom display name for the attribute.
/// </summary>
@ -17,8 +22,9 @@ namespace osu.Game.Rulesets.Difficulty
/// </summary>
public double Value { get; }
public PerformanceDisplayAttribute(string displayName, double value)
public PerformanceDisplayAttribute(string propertyName, string displayName, double value)
{
PropertyName = propertyName;
DisplayName = displayName;
Value = value;
}