1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-22 22:17:46 +08:00

Remove parameter of OnSelected.

This commit is contained in:
Huo Yaoyuan 2017-03-14 22:22:23 +08:00
parent b2dd9afcf3
commit a8d15e616b
4 changed files with 5 additions and 9 deletions

View File

@ -1,13 +1,11 @@
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Game.Beatmaps;
namespace osu.Game.Screens.Select
{
internal class EditSongSelect : SongSelect
{
public EditSongSelect() : base(false) { }
protected override void OnSelected(WorkingBeatmap beatmap) => Exit();
protected override void OnSelected() => Exit();
}
}

View File

@ -1,13 +1,11 @@
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Game.Beatmaps;
namespace osu.Game.Screens.Select
{
internal class MatchSongSelect : SongSelect
{
public MatchSongSelect() : base(true) { }
protected override void OnSelected(WorkingBeatmap beatmap) => Exit();
protected override void OnSelected() => Exit();
}
}

View File

@ -56,7 +56,7 @@ namespace osu.Game.Screens.Select
base.OnResuming(last);
}
protected override void OnSelected(WorkingBeatmap beatmap)
protected override void OnSelected()
{
if (player != null) return;

View File

@ -180,11 +180,11 @@ namespace osu.Game.Screens.Select
if (Beatmap == null) return;
Beatmap.PreferredPlayMode = playMode.Value;
OnSelected(Beatmap);
OnSelected();
}
public void SelectRandom() => carousel.SelectRandom();
protected abstract void OnSelected(WorkingBeatmap beatmap);
protected abstract void OnSelected();
private ScheduledDelegate filterTask;