mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 18:23:04 +08:00
Add online status to RealmBeatmapSet
This commit is contained in:
parent
183b95cbc2
commit
052ed8f930
@ -42,8 +42,9 @@ namespace osu.Game.Database
|
|||||||
/// 9 2021-11-04 Converted BeatmapMetadata.Author from string to RealmUser.
|
/// 9 2021-11-04 Converted BeatmapMetadata.Author from string to RealmUser.
|
||||||
/// 10 2021-11-22 Use ShortName instead of RulesetID for ruleset settings.
|
/// 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.
|
/// 11 2021-11-22 Use ShortName instead of RulesetID for ruleset key bindings.
|
||||||
|
/// 12 2021-11-24 Add Status to RealmBeatmapSet.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private const int schema_version = 11;
|
private const int schema_version = 12;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Lock object which is held during <see cref="BlockAllOperations"/> sections, blocking context creation during blocking periods.
|
/// Lock object which is held during <see cref="BlockAllOperations"/> sections, blocking context creation during blocking periods.
|
||||||
|
@ -32,6 +32,15 @@ namespace osu.Game.Models
|
|||||||
|
|
||||||
public IList<RealmNamedFileUsage> Files { get; } = null!;
|
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 bool DeletePending { get; set; }
|
||||||
|
|
||||||
public string Hash { get; set; } = string.Empty;
|
public string Hash { get; set; } = string.Empty;
|
||||||
|
Loading…
Reference in New Issue
Block a user