-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #407 from Rian8337/beatmap-pp-leaderboard
Add pp for global beatmap leaderboard in song selection
- Loading branch information
Showing
8 changed files
with
89 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/ru/nsu/ccfit/zuev/osu/scoring/BeatmapLeaderboardScoringMode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package ru.nsu.ccfit.zuev.osu.scoring; | ||
|
||
/** | ||
* Represents the scoring mode used in online beatmap leaderboard. | ||
*/ | ||
public enum BeatmapLeaderboardScoringMode { | ||
SCORE, | ||
PP; | ||
|
||
/** | ||
* Parses an integer value to a {@link BeatmapLeaderboardScoringMode}. | ||
* | ||
* @param value The integer value to parse. | ||
* @return The parsed {@link BeatmapLeaderboardScoringMode}. | ||
*/ | ||
public static BeatmapLeaderboardScoringMode parse(int value) { | ||
return value == 1 ? PP : SCORE; | ||
} | ||
} |