1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 11:42:54 +08:00

Add online status to RealmBeatmapSet

This commit is contained in:
Dean Herbert 2021-11-24 18:45:34 +09:00
parent 183b95cbc2
commit 052ed8f930
2 changed files with 11 additions and 1 deletions

View File

@ -42,8 +42,9 @@ namespace osu.Game.Database
/// 9 2021-11-04 Converted BeatmapMetadata.Author from string to RealmUser.
/// 10 2021-11-22 Use ShortName instead of RulesetID for ruleset settings.
/// 11 2021-11-22 Use ShortName instead of RulesetID for ruleset key bindings.
/// 12 2021-11-24 Add Status to RealmBeatmapSet.
/// </summary>
private const int schema_version = 11;
private const int schema_version = 12;
/// <summary>
/// Lock object which is held during <see cref="BlockAllOperations"/> sections, blocking context creation during blocking periods.

View File

@ -32,6 +32,15 @@ namespace osu.Game.Models
public IList<RealmNamedFileUsage> Files { get; } = null!;
public BeatmapOnlineStatus Status
{
get => (BeatmapOnlineStatus)StatusInt;
set => StatusInt = (int)value;
}
[MapTo(nameof(Status))]
public int StatusInt { get; set; }
public bool DeletePending { get; set; }
public string Hash { get; set; } = string.Empty;