1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 14:32:55 +08:00

Refactor switch

This commit is contained in:
smoogipoo 2019-12-16 16:57:40 +09:00
parent 58e3fb0d0f
commit 596fda3c1f

View File

@ -191,26 +191,27 @@ namespace osu.Game.Beatmaps.Formats
writer.WriteLine("[HitObjects]");
foreach (var h in beatmap.HitObjects)
switch (beatmap.BeatmapInfo.RulesetID)
{
switch (beatmap.BeatmapInfo.RulesetID)
{
case 0:
case 0:
foreach (var h in beatmap.HitObjects)
handleOsuHitObject(writer, h);
break;
break;
case 1:
case 1:
foreach (var h in beatmap.HitObjects)
handleTaikoHitObject(writer, h);
break;
break;
case 2:
case 2:
foreach (var h in beatmap.HitObjects)
handleCatchHitObject(writer, h);
break;
break;
case 3:
case 3:
foreach (var h in beatmap.HitObjects)
handleManiaHitObject(writer, h);
break;
}
break;
}
}