mirror of
https://github.com/ppy/osu.git
synced 2025-01-22 15:52:55 +08:00
Use Action rather than custom handler
This commit is contained in:
parent
ac8c230187
commit
5e09a1b334
@ -1,6 +1,7 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
@ -20,7 +21,8 @@ namespace osu.Game.Overlays.BeatmapListing
|
|||||||
private readonly SortCriteria sortCriteria;
|
private readonly SortCriteria sortCriteria;
|
||||||
private readonly SortDirection sortDirection;
|
private readonly SortDirection sortDirection;
|
||||||
|
|
||||||
public event PageFetchHandler PageFetched;
|
public event Action<List<BeatmapSetInfo>> PageFetched;
|
||||||
|
|
||||||
private SearchBeatmapSetsRequest getSetsRequest;
|
private SearchBeatmapSetsRequest getSetsRequest;
|
||||||
private SearchBeatmapSetsResponse lastResponse;
|
private SearchBeatmapSetsResponse lastResponse;
|
||||||
|
|
||||||
@ -82,7 +84,5 @@ namespace osu.Game.Overlays.BeatmapListing
|
|||||||
getSetsRequest?.Cancel();
|
getSetsRequest?.Cancel();
|
||||||
getSetsRequest = null;
|
getSetsRequest = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public delegate void PageFetchHandler(List<BeatmapSetInfo> sets);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user