1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-06 10:47:45 +08:00
osu-lazer/osu.Desktop.Tests/Visual/TestCaseReplay.cs

22 lines
712 B
C#
Raw Normal View History

2017-02-28 20:14:48 +09:00
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
2017-03-06 10:05:42 +09:00
using osu.Game.Beatmaps;
using osu.Game.Rulesets;
2017-03-01 22:56:20 +09:00
using osu.Game.Screens.Play;
using System.Linq;
2017-02-28 20:14:48 +09:00
namespace osu.Desktop.Tests.Visual
2017-02-28 20:14:48 +09:00
{
2017-03-09 13:55:29 +09:00
internal class TestCaseReplay : TestCasePlayer
2017-02-28 20:14:48 +09:00
{
2017-03-01 22:56:20 +09:00
public override string Description => @"Testing replay playback.";
protected override Player CreatePlayer(WorkingBeatmap beatmap, Ruleset ruleset)
{
beatmap.Mods.Value = beatmap.Mods.Value.Concat(new[] { ruleset.GetAutoplayMod() });
return base.CreatePlayer(beatmap, ruleset);
}
}
2017-02-28 20:14:48 +09:00
}