mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:12:54 +08:00
Temporary fix for participant count being nullable
This commit is contained in:
parent
f6aa6e6b3c
commit
6b7b0af2e4
@ -49,9 +49,17 @@ namespace osu.Game.Online.Multiplayer
|
||||
[JsonIgnore]
|
||||
public Bindable<IEnumerable<User>> Participants { get; private set; } = new Bindable<IEnumerable<User>>(Enumerable.Empty<User>());
|
||||
|
||||
[JsonProperty("participant_count")]
|
||||
|
||||
public Bindable<int> ParticipantCount { get; private set; } = new Bindable<int>();
|
||||
|
||||
// todo: TEMPORARY
|
||||
[JsonProperty("participant_count")]
|
||||
private int? participantCount
|
||||
{
|
||||
get => ParticipantCount;
|
||||
set => ParticipantCount.Value = value ?? 0;
|
||||
}
|
||||
|
||||
[JsonProperty("duration")]
|
||||
private int duration
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user