1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 16:52:54 +08:00

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
commit 5ec64c0348
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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