mirror of
https://github.com/ppy/osu.git
synced 2025-02-21 18:42:56 +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).
|
// (higher = more performant, but higher false-negative chance).
|
||||||
private const int path_step_size = 5;
|
private const int path_step_size = 5;
|
||||||
|
|
||||||
public override CheckMetadata Metadata() => new CheckMetadata
|
public override CheckMetadata Metadata { get; } = new CheckMetadata
|
||||||
(
|
(
|
||||||
category: CheckCategory.Compose,
|
category: CheckCategory.Compose,
|
||||||
description: "Offscreen hitobjects."
|
description: "Offscreen hitobjects."
|
||||||
|
@ -10,7 +10,7 @@ namespace osu.Game.Rulesets.Edit.Checks
|
|||||||
{
|
{
|
||||||
public class CheckBackground : Check
|
public class CheckBackground : Check
|
||||||
{
|
{
|
||||||
public override CheckMetadata Metadata() => new CheckMetadata
|
public override CheckMetadata Metadata { get; } = new CheckMetadata
|
||||||
(
|
(
|
||||||
category: CheckCategory.Resources,
|
category: CheckCategory.Resources,
|
||||||
description: "Missing background."
|
description: "Missing background."
|
||||||
|
@ -11,7 +11,7 @@ namespace osu.Game.Rulesets.Edit.Checks.Components
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The metadata for this check.
|
/// The metadata for this check.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public abstract CheckMetadata Metadata();
|
public abstract CheckMetadata Metadata { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// All possible templates for issues that this check may return.
|
/// All possible templates for issues that this check may return.
|
||||||
|
@ -112,7 +112,7 @@ namespace osu.Game.Screens.Edit.Verify
|
|||||||
},
|
},
|
||||||
new OsuSpriteText
|
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),
|
Font = OsuFont.GetFont(size: text_size, weight: FontWeight.Bold),
|
||||||
Margin = new MarginPadding(10)
|
Margin = new MarginPadding(10)
|
||||||
}
|
}
|
||||||
|
@ -130,7 +130,7 @@ namespace osu.Game.Screens.Edit.Verify
|
|||||||
{
|
{
|
||||||
table.Issues = beatmapVerifier.Run(Beatmap)
|
table.Issues = beatmapVerifier.Run(Beatmap)
|
||||||
.OrderByDescending(issue => issue.Template.Type)
|
.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