-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show division in replays when available (#3042)
* Show league divisions in matchmaker replays * Use records and new mapper * Revert controllers * Decouple rating and division displaying * Fix mapper with dummy values * Change team result calculations * Create a display mode * Fix and add tests * Prevent early aborts in test runs * Fix race condition * Don't add controllers twice to UI --------- Co-authored-by: Sheikah45 <Sheikah450@gmail.com>
- Loading branch information
Showing
18 changed files
with
372 additions
and
47 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
10 changes: 10 additions & 0 deletions
10
src/main/java/com/faforever/client/domain/api/GameOutcome.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,10 @@ | ||
package com.faforever.client.domain.api; | ||
|
||
public enum GameOutcome { | ||
VICTORY, | ||
DEFEAT, | ||
DRAW, | ||
MUTUAL_DRAW, | ||
UNKNOWN, | ||
CONFLICTING | ||
} |
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
14 changes: 14 additions & 0 deletions
14
src/main/java/com/faforever/client/domain/api/LeagueScoreJournal.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,14 @@ | ||
package com.faforever.client.domain.api; | ||
|
||
public record LeagueScoreJournal( | ||
int id, | ||
int gameId, | ||
int loginId, | ||
int gameCount, | ||
int scoreBefore, | ||
int scoreAfter, | ||
LeagueSeason season, | ||
Subdivision divisionBefore, | ||
Subdivision divisionAfter | ||
) {} | ||
|
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
Oops, something went wrong.