1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 05:22:54 +08:00

Add user beatmap availability property

This commit is contained in:
Salman Ahmed 2021-01-03 04:25:06 +03:00
parent 8bb84570df
commit 09e5e2629a

View File

@ -5,6 +5,7 @@
using System;
using Newtonsoft.Json;
using osu.Game.Online.Rooms;
using osu.Game.Users;
namespace osu.Game.Online.Multiplayer
@ -16,6 +17,11 @@ namespace osu.Game.Online.Multiplayer
public MultiplayerUserState State { get; set; } = MultiplayerUserState.Idle;
/// <summary>
/// The availability state of the beatmap, set to <see cref="DownloadState.LocallyAvailable"/> by default.
/// </summary>
public BeatmapAvailability BeatmapAvailability { get; set; } = new BeatmapAvailability(DownloadState.LocallyAvailable);
public User? User { get; set; }
[JsonConstructor]