1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 05:32:54 +08:00

User property instead of method

This commit is contained in:
Dean Herbert 2019-07-21 10:42:40 +09:00
parent 842417cf42
commit e76b3e2b40
3 changed files with 4 additions and 4 deletions

View File

@ -194,7 +194,7 @@ namespace osu.Game.Online.Leaderboards
private APIRequest getScoresRequest;
protected abstract bool IsOnlineScope();
protected abstract bool IsOnlineScope { get; }
public void APIStateChanged(IAPIProvider api, APIState state)
{
@ -202,7 +202,7 @@ namespace osu.Game.Online.Leaderboards
{
case APIState.Online:
case APIState.Offline:
if (IsOnlineScope())
if (IsOnlineScope)
UpdateScores();
break;

View File

@ -33,7 +33,7 @@ namespace osu.Game.Screens.Multi.Match.Components
}, true);
}
protected override bool IsOnlineScope() => true;
protected override bool IsOnlineScope => true;
protected override APIRequest FetchScores(Action<IEnumerable<APIRoomScoreInfo>> scoresCallback)
{

View File

@ -79,7 +79,7 @@ namespace osu.Game.Screens.Select.Leaderboards
};
}
protected override bool IsOnlineScope() => Scope != BeatmapLeaderboardScope.Local;
protected override bool IsOnlineScope => Scope != BeatmapLeaderboardScope.Local;
protected override APIRequest FetchScores(Action<IEnumerable<ScoreInfo>> scoresCallback)
{