mirror of
https://github.com/ppy/osu
synced 2024-12-23 23:33:36 +00:00
Add helper method to get winning team colour
This commit is contained in:
parent
3caffb81e1
commit
129c8fe24f
@ -90,6 +90,8 @@ namespace osu.Game.Tournament.Models
|
||||
[JsonIgnore]
|
||||
public TournamentTeam Loser => !Completed.Value ? null : Team1Score.Value > Team2Score.Value ? Team2.Value : Team1.Value;
|
||||
|
||||
public TeamColour WinnerColour => Winner == Team1.Value ? TeamColour.Red : TeamColour.Blue;
|
||||
|
||||
public int PointsToWin => Round.Value?.BestOf.Value / 2 + 1 ?? 0;
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user