mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Fix post-merge errors
This commit is contained in:
@ -57,7 +57,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
|
|
||||||
AddStep("load player", () =>
|
AddStep("load player", () =>
|
||||||
{
|
{
|
||||||
SelectedMods.Value = new[] { gameMod = new TestMod() };
|
Mods.Value = new[] { gameMod = new TestMod() };
|
||||||
InputManager.MoveMouseTo(loader.ScreenSpaceDrawQuad.Centre);
|
InputManager.MoveMouseTo(loader.ScreenSpaceDrawQuad.Centre);
|
||||||
stack.Push(new PlayerLoader(() => player = new TestPlayer()));
|
stack.Push(new PlayerLoader(() => player = new TestPlayer()));
|
||||||
});
|
});
|
||||||
@ -66,7 +66,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
{
|
{
|
||||||
if (player.IsCurrentScreen())
|
if (player.IsCurrentScreen())
|
||||||
{
|
{
|
||||||
playerMod1 = (TestMod)player.SelectedMods.Value.Single();
|
playerMod1 = (TestMod)player.Mods.Value.Single();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -86,7 +86,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
{
|
{
|
||||||
if (player.IsCurrentScreen())
|
if (player.IsCurrentScreen())
|
||||||
{
|
{
|
||||||
playerMod2 = (TestMod)player.SelectedMods.Value.Single();
|
playerMod2 = (TestMod)player.Mods.Value.Single();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -114,7 +114,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
|
|
||||||
private class TestPlayer : Player
|
private class TestPlayer : Player
|
||||||
{
|
{
|
||||||
public new Bindable<IEnumerable<Mod>> SelectedMods => base.SelectedMods;
|
public new Bindable<IReadOnlyList<Mod>> Mods => base.Mods;
|
||||||
|
|
||||||
public TestPlayer()
|
public TestPlayer()
|
||||||
: base(false, false)
|
: base(false, false)
|
||||||
|
@ -71,8 +71,8 @@ namespace osu.Game.Screens.Play
|
|||||||
protected GameplayClockContainer GameplayClockContainer { get; private set; }
|
protected GameplayClockContainer GameplayClockContainer { get; private set; }
|
||||||
|
|
||||||
[Cached]
|
[Cached]
|
||||||
[Cached(Type = typeof(IBindable<IEnumerable<Mod>>))]
|
[Cached(Type = typeof(IBindable<IReadOnlyList<Mod>>))]
|
||||||
protected readonly Bindable<IEnumerable<Mod>> SelectedMods = new Bindable<IEnumerable<Mod>>(Enumerable.Empty<Mod>());
|
protected readonly Bindable<IReadOnlyList<Mod>> Mods = new Bindable<IReadOnlyList<Mod>>(Array.Empty<Mod>());
|
||||||
|
|
||||||
private readonly bool allowPause;
|
private readonly bool allowPause;
|
||||||
private readonly bool showResults;
|
private readonly bool showResults;
|
||||||
@ -93,7 +93,7 @@ namespace osu.Game.Screens.Play
|
|||||||
{
|
{
|
||||||
this.api = api;
|
this.api = api;
|
||||||
|
|
||||||
SelectedMods.Value = base.SelectedMods.Value.Select(m => m.CreateCopy()).ToArray();
|
Mods.Value = base.Mods.Value.Select(m => m.CreateCopy()).ToArray();
|
||||||
|
|
||||||
WorkingBeatmap working = loadBeatmap();
|
WorkingBeatmap working = loadBeatmap();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user