mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 12:17:26 +08:00
Rename method
This commit is contained in:
parent
740b01c049
commit
486b899e8f
@ -309,7 +309,7 @@ namespace osu.Game.Rulesets.Mania
|
||||
return (PlayfieldType)Enum.GetValues(typeof(PlayfieldType)).Cast<int>().OrderByDescending(i => i).First(v => variant >= v);
|
||||
}
|
||||
|
||||
public override StatisticRow[] CreateStatistics(ScoreInfo score) => new[]
|
||||
public override StatisticRow[] CreateStatisticsForScore(ScoreInfo score) => new[]
|
||||
{
|
||||
new StatisticRow
|
||||
{
|
||||
|
@ -192,7 +192,7 @@ namespace osu.Game.Rulesets.Osu
|
||||
|
||||
public override IRulesetConfigManager CreateConfig(SettingsStore settings) => new OsuRulesetConfigManager(settings, RulesetInfo);
|
||||
|
||||
public override StatisticRow[] CreateStatistics(ScoreInfo score) => new[]
|
||||
public override StatisticRow[] CreateStatisticsForScore(ScoreInfo score) => new[]
|
||||
{
|
||||
new StatisticRow
|
||||
{
|
||||
|
@ -159,7 +159,7 @@ namespace osu.Game.Rulesets.Taiko
|
||||
|
||||
public override IConvertibleReplayFrame CreateConvertibleReplayFrame() => new TaikoReplayFrame();
|
||||
|
||||
public override StatisticRow[] CreateStatistics(ScoreInfo score) => new[]
|
||||
public override StatisticRow[] CreateStatisticsForScore(ScoreInfo score) => new[]
|
||||
{
|
||||
new StatisticRow
|
||||
{
|
||||
|
@ -216,6 +216,6 @@ namespace osu.Game.Rulesets
|
||||
/// <param name="score">The <see cref="ScoreInfo"/> to create the statistics for. The score is guaranteed to have <see cref="ScoreInfo.HitEvents"/> populated.</param>
|
||||
/// <returns>The <see cref="StatisticRow"/>s to display. Each <see cref="StatisticRow"/> may contain 0 or more <see cref="StatisticItem"/>.</returns>
|
||||
[NotNull]
|
||||
public virtual StatisticRow[] CreateStatistics(ScoreInfo score) => Array.Empty<StatisticRow>();
|
||||
public virtual StatisticRow[] CreateStatisticsForScore(ScoreInfo score) => Array.Empty<StatisticRow>();
|
||||
}
|
||||
}
|
||||
|
@ -75,7 +75,7 @@ namespace osu.Game.Screens.Ranking.Statistics
|
||||
Spacing = new Vector2(30, 15),
|
||||
};
|
||||
|
||||
foreach (var row in newScore.Ruleset.CreateInstance().CreateStatistics(newScore))
|
||||
foreach (var row in newScore.Ruleset.CreateInstance().CreateStatisticsForScore(newScore))
|
||||
{
|
||||
rows.Add(new GridContainer
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user