Exemplo n.º 1
0
        public override IEnumerable <Mod> ConvertFromLegacyMods(LegacyMods mods)
        {
            if (mods.HasFlagFast(LegacyMods.Nightcore))
            {
                yield return(new OsuModNightcore());
            }
            else if (mods.HasFlagFast(LegacyMods.DoubleTime))
            {
                yield return(new OsuModDoubleTime());
            }

            if (mods.HasFlagFast(LegacyMods.Perfect))
            {
                yield return(new OsuModPerfect());
            }
            else if (mods.HasFlagFast(LegacyMods.SuddenDeath))
            {
                yield return(new OsuModSuddenDeath());
            }

            if (mods.HasFlagFast(LegacyMods.Autopilot))
            {
                yield return(new OsuModAutopilot());
            }

            if (mods.HasFlagFast(LegacyMods.Cinema))
            {
                yield return(new OsuModCinema());
            }
            else if (mods.HasFlagFast(LegacyMods.Autoplay))
            {
                yield return(new OsuModAutoplay());
            }

            if (mods.HasFlagFast(LegacyMods.Easy))
            {
                yield return(new OsuModEasy());
            }

            if (mods.HasFlagFast(LegacyMods.Flashlight))
            {
                yield return(new OsuModFlashlight());
            }

            if (mods.HasFlagFast(LegacyMods.HalfTime))
            {
                yield return(new OsuModHalfTime());
            }

            if (mods.HasFlagFast(LegacyMods.HardRock))
            {
                yield return(new OsuModHardRock());
            }

            if (mods.HasFlagFast(LegacyMods.Hidden))
            {
                yield return(new OsuModHidden());
            }

            if (mods.HasFlagFast(LegacyMods.NoFail))
            {
                yield return(new OsuModNoFail());
            }

            if (mods.HasFlagFast(LegacyMods.Relax))
            {
                yield return(new OsuModRelax());
            }

            if (mods.HasFlagFast(LegacyMods.SpunOut))
            {
                yield return(new OsuModSpunOut());
            }

            if (mods.HasFlagFast(LegacyMods.Target))
            {
                yield return(new OsuModTarget());
            }

            if (mods.HasFlagFast(LegacyMods.TouchDevice))
            {
                yield return(new OsuModTouchDevice());
            }
        }
Exemplo n.º 2
0
        public override IEnumerable <Mod> ConvertFromLegacyMods(LegacyMods mods)
        {
            if (mods.HasFlagFast(LegacyMods.Nightcore))
            {
                yield return(new ManiaModNightcore());
            }
            else if (mods.HasFlagFast(LegacyMods.DoubleTime))
            {
                yield return(new ManiaModDoubleTime());
            }

            if (mods.HasFlagFast(LegacyMods.Perfect))
            {
                yield return(new ManiaModPerfect());
            }
            else if (mods.HasFlagFast(LegacyMods.SuddenDeath))
            {
                yield return(new ManiaModSuddenDeath());
            }

            if (mods.HasFlagFast(LegacyMods.Cinema))
            {
                yield return(new ManiaModCinema());
            }
            else if (mods.HasFlagFast(LegacyMods.Autoplay))
            {
                yield return(new ManiaModAutoplay());
            }

            if (mods.HasFlagFast(LegacyMods.Easy))
            {
                yield return(new ManiaModEasy());
            }

            if (mods.HasFlagFast(LegacyMods.FadeIn))
            {
                yield return(new ManiaModFadeIn());
            }

            if (mods.HasFlagFast(LegacyMods.Flashlight))
            {
                yield return(new ManiaModFlashlight());
            }

            if (mods.HasFlagFast(LegacyMods.HalfTime))
            {
                yield return(new ManiaModHalfTime());
            }

            if (mods.HasFlagFast(LegacyMods.HardRock))
            {
                yield return(new ManiaModHardRock());
            }

            if (mods.HasFlagFast(LegacyMods.Hidden))
            {
                yield return(new ManiaModHidden());
            }

            if (mods.HasFlagFast(LegacyMods.Key1))
            {
                yield return(new ManiaModKey1());
            }

            if (mods.HasFlagFast(LegacyMods.Key2))
            {
                yield return(new ManiaModKey2());
            }

            if (mods.HasFlagFast(LegacyMods.Key3))
            {
                yield return(new ManiaModKey3());
            }

            if (mods.HasFlagFast(LegacyMods.Key4))
            {
                yield return(new ManiaModKey4());
            }

            if (mods.HasFlagFast(LegacyMods.Key5))
            {
                yield return(new ManiaModKey5());
            }

            if (mods.HasFlagFast(LegacyMods.Key6))
            {
                yield return(new ManiaModKey6());
            }

            if (mods.HasFlagFast(LegacyMods.Key7))
            {
                yield return(new ManiaModKey7());
            }

            if (mods.HasFlagFast(LegacyMods.Key8))
            {
                yield return(new ManiaModKey8());
            }

            if (mods.HasFlagFast(LegacyMods.Key9))
            {
                yield return(new ManiaModKey9());
            }

            if (mods.HasFlagFast(LegacyMods.KeyCoop))
            {
                yield return(new ManiaModDualStages());
            }

            if (mods.HasFlagFast(LegacyMods.NoFail))
            {
                yield return(new ManiaModNoFail());
            }

            if (mods.HasFlagFast(LegacyMods.Random))
            {
                yield return(new ManiaModRandom());
            }

            if (mods.HasFlagFast(LegacyMods.Mirror))
            {
                yield return(new ManiaModMirror());
            }
        }