1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 18:47:26 +08:00

Override autoplay bool instead of adding it

This commit is contained in:
iiSaLMaN 2019-09-26 04:38:20 +03:00
parent 186ea98217
commit d773f0cce1

View File

@ -27,6 +27,8 @@ namespace osu.Game.Rulesets.Osu.Tests
private TrackVirtualManual track;
protected override bool Autoplay => true;
protected override WorkingBeatmap CreateWorkingBeatmap(IBeatmap beatmap)
{
var working = new ClockBackedTestWorkingBeatmap(beatmap, new FramedClock(new ManualClock { Rate = 1 }), audioManager);
@ -75,12 +77,6 @@ namespace osu.Game.Rulesets.Osu.Tests
AddUntilStep("wait for seek to finish", () => Precision.AlmostEquals(time, ((TestPlayer)Player).DrawableRuleset.FrameStableClock.CurrentTime, 100));
}
protected override Player CreatePlayer(Ruleset ruleset)
{
Mods.Value = Mods.Value.Concat(new[] { ruleset.GetAutoplayMod() }).ToArray();
return new TestPlayer();
}
protected override IBeatmap CreateBeatmap(RulesetInfo ruleset) => new Beatmap
{
HitObjects = new List<HitObject>