Add two-way legacy conversions for mirror mod

This commit is contained in:
Bartłomiej Dach 2020-08-29 11:49:17 +02:00
parent 58742afd99
commit da82556f6b
1 changed files with 7 additions and 0 deletions

View File

@ -126,6 +126,9 @@ public override IEnumerable<Mod> ConvertFromLegacyMods(LegacyMods mods)
if (mods.HasFlag(LegacyMods.Random))
yield return new ManiaModRandom();
if (mods.HasFlag(LegacyMods.Mirror))
yield return new ManiaModMirror();
}
public override LegacyMods ConvertToLegacyMods(Mod[] mods)
@ -175,6 +178,10 @@ public override LegacyMods ConvertToLegacyMods(Mod[] mods)
case ManiaModFadeIn _:
value |= LegacyMods.FadeIn;
break;
case ManiaModMirror _:
value |= LegacyMods.Mirror;
break;
}
}