mirror of
https://github.com/ppy/osu
synced 2024-12-25 00:02:48 +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]
|
[JsonIgnore]
|
||||||
public TournamentTeam Loser => !Completed.Value ? null : Team1Score.Value > Team2Score.Value ? Team2.Value : Team1.Value;
|
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;
|
public int PointsToWin => Round.Value?.BestOf.Value / 2 + 1 ?? 0;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user