1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-05 17:04:35 +08:00

User property instead of method

This commit is contained in:
Dean Herbert
2019-07-21 10:42:40 +09:00
Unverified
parent 842417cf42
commit e76b3e2b40
3 changed files with 4 additions and 4 deletions
+2 -2
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;
@@ -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)
{
@@ -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)
{