mirror of
https://github.com/ppy/osu
synced 2025-03-04 10:29:37 +00:00
Add JsonConstructor attribute
This commit is contained in:
parent
839f5a7570
commit
e99310b59c
@ -2,6 +2,7 @@
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using System;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace osu.Game.Online.Rooms
|
||||
{
|
||||
@ -20,6 +21,7 @@ namespace osu.Game.Online.Rooms
|
||||
/// </summary>
|
||||
public readonly double? DownloadProgress;
|
||||
|
||||
[JsonConstructor]
|
||||
private BeatmapAvailability(DownloadState state, double? downloadProgress = null)
|
||||
{
|
||||
State = state;
|
||||
|
Loading…
Reference in New Issue
Block a user