Participants

This commit is contained in:
Dean Herbert
2018-12-26 21:58:14 +09:00
parent bf9954aede
commit a1fa914c66
7 changed files with 27 additions and 7 deletions

View File

@ -49,6 +49,9 @@ 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>();
[JsonProperty("duration")]
private int duration
{
@ -85,6 +88,7 @@ namespace osu.Game.Online.Multiplayer
Type.Value = other.Type;
MaxParticipants.Value = other.MaxParticipants;
ParticipantCount.Value = other.ParticipantCount.Value;
Participants.Value = other.Participants.Value.ToArray();
EndDate.Value = other.EndDate;