1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 19:52:55 +08:00

Make participant count non-nullable

This commit is contained in:
smoogipoo 2020-12-21 16:35:19 +09:00
parent 0c9b1c3a73
commit 5d73359bd7

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