1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-20 05:36:05 +08:00

Change Metadata into a get property

This commit is contained in:
Dean Herbert 2021-04-12 15:52:29 +09:00
parent 78bbc8f5c8
commit 8bf85d737c
5 changed files with 5 additions and 5 deletions

View File

@ -22,7 +22,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Checks
// (higher = more performant, but higher false-negative chance).
private const int path_step_size = 5;
public override CheckMetadata Metadata() => new CheckMetadata
public override CheckMetadata Metadata { get; } = new CheckMetadata
(
category: CheckCategory.Compose,
description: "Offscreen hitobjects."

View File

@ -10,7 +10,7 @@ namespace osu.Game.Rulesets.Edit.Checks
{
public class CheckBackground : Check
{
public override CheckMetadata Metadata() => new CheckMetadata
public override CheckMetadata Metadata { get; } = new CheckMetadata
(
category: CheckCategory.Resources,
description: "Missing background."

View File

@ -11,7 +11,7 @@ namespace osu.Game.Rulesets.Edit.Checks.Components
/// <summary>
/// The metadata for this check.
/// </summary>
public abstract CheckMetadata Metadata();
public abstract CheckMetadata Metadata { get; }
/// <summary>
/// All possible templates for issues that this check may return.

View File

@ -112,7 +112,7 @@ namespace osu.Game.Screens.Edit.Verify
},
new OsuSpriteText
{
Text = issue.Template.Origin.Metadata().Category.ToString(),
Text = issue.Template.Origin.Metadata.Category.ToString(),
Font = OsuFont.GetFont(size: text_size, weight: FontWeight.Bold),
Margin = new MarginPadding(10)
}

View File

@ -130,7 +130,7 @@ namespace osu.Game.Screens.Edit.Verify
{
table.Issues = beatmapVerifier.Run(Beatmap)
.OrderByDescending(issue => issue.Template.Type)
.ThenByDescending(issue => issue.Template.Origin.Metadata().Category);
.ThenByDescending(issue => issue.Template.Origin.Metadata.Category);
}
}
}