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:
parent
78bbc8f5c8
commit
8bf85d737c
@ -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."
|
||||
|
@ -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."
|
||||
|
@ -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.
|
||||
|
@ -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)
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user