Change some methods to get properties

This commit is contained in:
Dean Herbert
2021-04-12 15:37:41 +09:00
parent f78239c7f2
commit 8c31e96cdf
5 changed files with 6 additions and 9 deletions

View File

@ -16,7 +16,7 @@ namespace osu.Game.Rulesets.Edit.Checks.Components
/// <summary>
/// All possible templates for issues that this check may return.
/// </summary>
public abstract IEnumerable<IssueTemplate> Templates();
public abstract IEnumerable<IssueTemplate> PossibleTemplates { get; }
/// <summary>
/// Runs this check and returns any issues detected for the provided beatmap.
@ -26,7 +26,7 @@ namespace osu.Game.Rulesets.Edit.Checks.Components
protected Check()
{
foreach (var template in Templates())
foreach (var template in PossibleTemplates)
template.Origin = this;
}
}