BeatmapSetInfo detach support

This commit is contained in:
Dean Herbert
2022-01-07 14:17:22 +09:00
parent de076678fe
commit 8461eaab46
10 changed files with 90 additions and 10 deletions

View File

@ -3,6 +3,7 @@
using System;
using System.Linq;
using AutoMapper;
using JetBrains.Annotations;
using Newtonsoft.Json;
using osu.Framework.Testing;
@ -143,6 +144,7 @@ namespace osu.Game.Beatmaps
private int rulesetID;
[Ignored]
[IgnoreMap]
public int RulesetID
{
// ReSharper disable once ConstantConditionalAccessQualifier
@ -182,6 +184,8 @@ namespace osu.Game.Beatmaps
public BeatmapInfo Clone() => this.Detach();
public override string ToString() => Metadata?.ToString() ?? base.ToString();
#endregion
}
}