mirror of
https://github.com/osukey/osukey.git
synced 2025-05-20 21:17:32 +09:00
Add editor override to respect IsolateSavingFromDatabase
This commit is contained in:
parent
47429fb0c6
commit
a8ffc4fc2a
@ -112,7 +112,7 @@ namespace osu.Game.Beatmaps
|
|||||||
/// The new difficulty will be backed by a <see cref="BeatmapInfo"/> model
|
/// The new difficulty will be backed by a <see cref="BeatmapInfo"/> model
|
||||||
/// and represented by the returned <see cref="WorkingBeatmap"/>.
|
/// and represented by the returned <see cref="WorkingBeatmap"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public WorkingBeatmap CreateNewBlankDifficulty(BeatmapSetInfo beatmapSetInfo, RulesetInfo rulesetInfo)
|
public virtual WorkingBeatmap CreateNewBlankDifficulty(BeatmapSetInfo beatmapSetInfo, RulesetInfo rulesetInfo)
|
||||||
{
|
{
|
||||||
// fetch one of the existing difficulties to copy timing points and metadata from,
|
// fetch one of the existing difficulties to copy timing points and metadata from,
|
||||||
// so that the user doesn't have to fill all of that out again.
|
// so that the user doesn't have to fill all of that out again.
|
||||||
|
@ -136,6 +136,12 @@ namespace osu.Game.Tests.Visual
|
|||||||
return new TestWorkingBeatmapCache(this, audioManager, resources, storage, defaultBeatmap, host);
|
return new TestWorkingBeatmapCache(this, audioManager, resources, storage, defaultBeatmap, host);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override WorkingBeatmap CreateNewBlankDifficulty(BeatmapSetInfo beatmapSetInfo, RulesetInfo rulesetInfo)
|
||||||
|
{
|
||||||
|
// don't actually care about properly creating a difficulty for this context.
|
||||||
|
return TestBeatmap;
|
||||||
|
}
|
||||||
|
|
||||||
private class TestWorkingBeatmapCache : WorkingBeatmapCache
|
private class TestWorkingBeatmapCache : WorkingBeatmapCache
|
||||||
{
|
{
|
||||||
private readonly TestBeatmapManager testBeatmapManager;
|
private readonly TestBeatmapManager testBeatmapManager;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user