mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Allow testing mod combinations in ModTestScenes
This commit is contained in:
@ -40,8 +40,8 @@ namespace osu.Game.Tests.Visual
|
|||||||
{
|
{
|
||||||
var mods = new List<Mod>(SelectedMods.Value);
|
var mods = new List<Mod>(SelectedMods.Value);
|
||||||
|
|
||||||
if (currentTestData.Mod != null)
|
if (currentTestData.Mods != null)
|
||||||
mods.Add(currentTestData.Mod);
|
mods.AddRange(currentTestData.Mods);
|
||||||
if (currentTestData.Autoplay)
|
if (currentTestData.Autoplay)
|
||||||
mods.Add(ruleset.GetAutoplayMod());
|
mods.Add(ruleset.GetAutoplayMod());
|
||||||
|
|
||||||
@ -85,9 +85,18 @@ namespace osu.Game.Tests.Visual
|
|||||||
public Func<bool> PassCondition;
|
public Func<bool> PassCondition;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The <see cref="Mod"/> this test case tests.
|
/// The <see cref="Mod"/>s this test case tests.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Mod Mod;
|
public IReadOnlyList<Mod> Mods;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Convenience property for setting <see cref="Mods"/> if only
|
||||||
|
/// a single mod is to be tested.
|
||||||
|
/// </summary>
|
||||||
|
public Mod Mod
|
||||||
|
{
|
||||||
|
set => Mods = new[] { value };
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user