Allow multiple mappings to be generated for a single hitobject

This commit is contained in:
smoogipoo
2018-03-02 02:02:09 +09:00
parent 9d035fc5d0
commit 573d6d1b5f
4 changed files with 27 additions and 18 deletions

View File

@ -88,7 +88,7 @@ namespace osu.Game.Tests.Beatmaps
var mapping = new ConvertMapping { StartTime = orig.StartTime };
foreach (var obj in converted)
mapping.Objects.Add(CreateConvertValue(obj));
mapping.Objects.AddRange(CreateConvertValue(obj));
result.Mappings.Add(mapping);
};
@ -121,7 +121,7 @@ namespace osu.Game.Tests.Beatmaps
return Assembly.LoadFrom(Path.Combine(localPath, $"{ResourceAssembly}.dll")).GetManifestResourceStream($@"{ResourceAssembly}.Resources.{name}");
}
protected abstract TConvertValue CreateConvertValue(HitObject hitObject);
protected abstract IEnumerable<TConvertValue> CreateConvertValue(HitObject hitObject);
protected abstract ITestableBeatmapConverter CreateConverter(Beatmap beatmap);
private class ConvertMapping