Rename Leaderboards

This commit is contained in:
Lucas Lima 2020-08-25 20:47:05 -03:00
parent 4428a783bb
commit f39ef87666
No known key found for this signature in database
GPG key ID: 049CCC5A365B00D2
2 changed files with 6 additions and 6 deletions

View file

@ -438,13 +438,13 @@ class GameViewModel(
if (time > 1L && gameController.getActionsCount() > 7) { if (time > 1L && gameController.getActionsCount() > 7) {
when (currentDifficulty) { when (currentDifficulty) {
Difficulty.Beginner -> { Difficulty.Beginner -> {
playGamesManager.submitLeaderboard(Leaderboard.BestTimeBeginner, clock.time()) playGamesManager.submitLeaderboard(Leaderboard.BeginnerBestTime, clock.time())
} }
Difficulty.Intermediate -> { Difficulty.Intermediate -> {
playGamesManager.submitLeaderboard(Leaderboard.BestTimeIntermediate, clock.time()) playGamesManager.submitLeaderboard(Leaderboard.IntermediateBestTime, clock.time())
} }
Difficulty.Expert -> { Difficulty.Expert -> {
playGamesManager.submitLeaderboard(Leaderboard.BestTimeExpert, clock.time()) playGamesManager.submitLeaderboard(Leaderboard.ExpertBestTime, clock.time())
} }
else -> { else -> {
} }

View file

@ -19,9 +19,9 @@ enum class Achievement(
enum class Leaderboard( enum class Leaderboard(
val value: String val value: String
) { ) {
BestTimeBeginner(""), BeginnerBestTime(""),
BestTimeIntermediate(""), IntermediateBestTime(""),
BestTimeExpert(""), ExpertBestTime(""),
} }
interface IPlayGamesManager { interface IPlayGamesManager {