1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 13:37:25 +08:00

CreateAutoplayReplay -> CreateAutoplayScore.

This commit is contained in:
Dean Herbert 2017-03-06 10:06:14 +09:00
parent 54945415c0
commit 5b4424d4fa
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49
3 changed files with 4 additions and 8 deletions

View File

@ -33,7 +33,7 @@ namespace osu.Desktop.VisualTests.Tests
protected override Player CreatePlayer(WorkingBeatmap beatmap)
{
var player = base.CreatePlayer(beatmap);
player.ReplayInputHandler = Ruleset.GetRuleset(beatmap.PlayMode).CreateAutoplayReplay(beatmap.Beatmap)?.Replay?.GetInputHandler();
player.ReplayInputHandler = Ruleset.GetRuleset(beatmap.PlayMode).CreateAutoplayScore(beatmap.Beatmap)?.Replay?.GetInputHandler();
return player;
}
}

View File

@ -105,14 +105,10 @@ namespace osu.Game.Modes.Osu
public override DifficultyCalculator CreateDifficultyCalculator(Beatmap beatmap) => new OsuDifficultyCalculator(beatmap);
public override Score CreateAutoplayReplay(Beatmap beatmap)
public override Score CreateAutoplayScore(Beatmap beatmap)
{
var processor = CreateScoreProcessor();
var score = processor.GetScore();
var score = CreateScoreProcessor().GetScore();
score.Replay = new OsuAutoReplay(beatmap);
return score;
}

View File

@ -43,7 +43,7 @@ namespace osu.Game.Modes
public virtual FontAwesome Icon => FontAwesome.fa_question_circle;
public virtual Score CreateAutoplayReplay(Beatmap beatmap) => null;
public virtual Score CreateAutoplayScore(Beatmap beatmap) => null;
public static Ruleset GetRuleset(PlayMode mode)
{