1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 08:27:49 +08:00

Add beatmap parameter to beatmapconverter creation

This commit is contained in:
smoogipoo 2018-03-02 01:50:54 +09:00
parent 6f5acaa8f9
commit 4e363664fd
3 changed files with 4 additions and 4 deletions

View File

@ -40,7 +40,7 @@ namespace osu.Game.Rulesets.Osu.Tests
};
}
protected override ITestableBeatmapConverter CreateConverter() => new OsuBeatmapConverter();
protected override ITestableBeatmapConverter CreateConverter(Beatmap beatmap) => new OsuBeatmapConverter();
}
public struct ConvertValue : IEquatable<ConvertValue>

View File

@ -37,7 +37,7 @@ namespace osu.Game.Rulesets.Taiko.Tests
IsStrong = ((TaikoHitObject)hitObject).IsStrong
};
protected override ITestableBeatmapConverter CreateConverter() => new TaikoBeatmapConverter(isForCurrentRuleset);
protected override ITestableBeatmapConverter CreateConverter(Beatmap beatmap) => new TaikoBeatmapConverter(isForCurrentRuleset);
}
public struct ConvertValue : IEquatable<ConvertValue>

View File

@ -81,7 +81,7 @@ namespace osu.Game.Tests.Beatmaps
var result = new ConvertResult();
var converter = CreateConverter();
var converter = CreateConverter(beatmap);
converter.ObjectConverted += (orig, converted) =>
{
converted.ForEach(h => h.ApplyDefaults(beatmap.ControlPointInfo, beatmap.BeatmapInfo.BaseDifficulty));
@ -122,7 +122,7 @@ namespace osu.Game.Tests.Beatmaps
}
protected abstract TConvertValue CreateConvertValue(HitObject hitObject);
protected abstract ITestableBeatmapConverter CreateConverter();
protected abstract ITestableBeatmapConverter CreateConverter(Beatmap beatmap);
private class ConvertMapping
{