Merge pull request #11232 from smoogipoo/participant-count-serialisation

Make participant count non-nullable
This commit is contained in:
Dean Herbert
2020-12-21 17:34:01 +09:00
committed by GitHub

View File

@ -67,15 +67,8 @@ namespace osu.Game.Online.Multiplayer
public readonly BindableList<User> RecentParticipants = new BindableList<User>();
[Cached]
public readonly Bindable<int> ParticipantCount = new Bindable<int>();
// todo: TEMPORARY
[JsonProperty("participant_count")]
private int? participantCount
{
get => ParticipantCount.Value;
set => ParticipantCount.Value = value ?? 0;
}
public readonly Bindable<int> ParticipantCount = new Bindable<int>();
[JsonProperty("duration")]
private int? duration