Skip to content

Commit

Permalink
使用current_game_id
Browse files Browse the repository at this point in the history
  • Loading branch information
cdwcgt committed Nov 23, 2024
1 parent 811f9c9 commit fe10bb0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion osu.Game.Tournament/Components/MatchListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public void FetchMatch()

req.Success += content =>
{
currentlyPlaying.Value = content.Events.Any(e => e.Game?.Scores.Count == 0);
currentlyPlaying.Value = content.CurrentGameID != null;

var newEvent = content.Events.ExceptBy(events.Select(e => e.Id), e => e.Id).Where(e => e.Game?.Scores.Count != 0);

Expand Down
3 changes: 3 additions & 0 deletions osu.Game.Tournament/Online/Requests/Responses/APIMatchInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@ public class APIMatchInfo

[JsonProperty("last_event_id")]
public long LastEventID { get; set; }

[JsonProperty("current_game_id")]
public long? CurrentGameID { get; set; }
}
}

0 comments on commit fe10bb0

Please sign in to comment.