Centralise calls to reset online info of a BeatmapInfo

This commit is contained in:
Dean Herbert
2022-07-25 18:51:19 +09:00
parent ec477a3ebf
commit 6a3e8e31de
6 changed files with 18 additions and 8 deletions

View File

@ -109,6 +109,17 @@ namespace osu.Game.Beatmaps
[JsonIgnore]
public bool Hidden { get; set; }
/// <summary>
/// Reset any fetched online linking information (and history).
/// </summary>
public void ResetOnlineInfo()
{
OnlineID = -1;
LastOnlineUpdate = null;
OnlineMD5Hash = string.Empty;
Status = BeatmapOnlineStatus.None;
}
#region Properties we may not want persisted (but also maybe no harm?)
public double AudioLeadIn { get; set; }