1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 02:32:55 +08:00

Add basic column conversion to ManiaBeatmapConverter.

This commit is contained in:
smoogipooo 2017-05-11 12:32:30 +09:00
parent 62656b98df
commit 185e98aa14

View File

@ -18,10 +18,17 @@ namespace osu.Game.Rulesets.Mania.Beatmaps
protected override IEnumerable<ManiaHitObject> ConvertHitObject(HitObject original, Beatmap beatmap)
{
int columns = (int)Math.Round(beatmap.BeatmapInfo.Difficulty.CircleSize);
var positionData = original as IHasXPosition;
float localWDivisor = 512.0f / columns;
int column = Math.Min((int)Math.Floor(positionData.X / localWDivisor), columns - 1);
yield return new Note
{
StartTime = original.StartTime,
Column = 1,
Column = column,
};
}
}