1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 09:07:25 +08:00

Simplify event names.

This commit is contained in:
Dean Herbert 2017-02-24 17:21:14 +09:00
parent d24403e58e
commit ea4639932c
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -138,8 +138,8 @@ namespace osu.Game.Screens.Select
if (database == null) if (database == null)
database = beatmaps; database = beatmaps;
database.BeatmapSetAdded += onDatabaseOnBeatmapSetAdded; database.BeatmapSetAdded += onBeatmapSetAdded;
database.BeatmapSetRemoved += onDatabaseOnBeatmapSetRemoved; database.BeatmapSetRemoved += onBeatmapSetRemoved;
trackManager = audio.Track; trackManager = audio.Track;
@ -185,15 +185,9 @@ namespace osu.Game.Screens.Select
}, 250); }, 250);
} }
private void onDatabaseOnBeatmapSetAdded(BeatmapSetInfo s) private void onBeatmapSetAdded(BeatmapSetInfo s) => Schedule(() => addBeatmapSet(s, Game, true));
{
Schedule(() => addBeatmapSet(s, Game, true));
}
private void onDatabaseOnBeatmapSetRemoved(BeatmapSetInfo s) private void onBeatmapSetRemoved(BeatmapSetInfo s) => Schedule(() => removeBeatmapSet(s));
{
Schedule(() => removeBeatmapSet(s));
}
protected override void OnEntering(Screen last) protected override void OnEntering(Screen last)
{ {
@ -252,8 +246,8 @@ namespace osu.Game.Screens.Select
if (playMode != null) if (playMode != null)
playMode.ValueChanged -= playMode_ValueChanged; playMode.ValueChanged -= playMode_ValueChanged;
database.BeatmapSetAdded -= onDatabaseOnBeatmapSetAdded; database.BeatmapSetAdded -= onBeatmapSetAdded;
database.BeatmapSetRemoved -= onDatabaseOnBeatmapSetRemoved; database.BeatmapSetRemoved -= onBeatmapSetRemoved;
initialAddSetsTask.Cancel(); initialAddSetsTask.Cancel();
} }