mirror of https://github.com/ppy/osu
Fix invalid room values
This commit is contained in:
parent
bac4f42eac
commit
264bd0e2aa
|
@ -35,8 +35,16 @@ public class Room
|
|||
[JsonProperty("duration")]
|
||||
public readonly Bindable<int> Duration = new Bindable<int>(100);
|
||||
|
||||
[JsonProperty("max_attempts")]
|
||||
public readonly Bindable<int?> MaxAttempts = new Bindable<int?>(null);
|
||||
[JsonIgnore]
|
||||
public readonly Bindable<int?> MaxAttempts = new Bindable<int?>();
|
||||
|
||||
// Todo: Find a better way to do this (https://github.com/ppy/osu-framework/issues/1930)
|
||||
[JsonProperty("max_attempts", DefaultValueHandling = DefaultValueHandling.Ignore)]
|
||||
private int? maxAttempts
|
||||
{
|
||||
get => MaxAttempts;
|
||||
set => MaxAttempts.Value = value;
|
||||
}
|
||||
|
||||
public Bindable<RoomStatus> Status = new Bindable<RoomStatus>(new RoomStatusOpen());
|
||||
public Bindable<RoomAvailability> Availability = new Bindable<RoomAvailability>();
|
||||
|
|
Loading…
Reference in New Issue