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:
commit
5ec64c0348
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user