1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 03:22:55 +08:00
osu-lazer/osu.Game/Rulesets/Mods/MultiMod.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
869 B
C#
Raw Normal View History

// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
2018-04-13 17:19:50 +08:00
2018-06-06 13:07:50 +08:00
using System;
using System.Linq;
using osu.Framework.Localisation;
2018-06-06 13:07:50 +08:00
namespace osu.Game.Rulesets.Mods
{
public sealed class MultiMod : Mod
{
public override string Name => string.Empty;
public override string Acronym => string.Empty;
public override LocalisableString Description => string.Empty;
public override double ScoreMultiplier => 0;
2018-04-13 17:19:50 +08:00
2018-06-06 13:07:50 +08:00
public Mod[] Mods { get; }
public MultiMod(params Mod[] mods)
{
Mods = mods;
}
public override Mod DeepClone() => new MultiMod(Mods.Select(m => m.DeepClone()).ToArray());
2018-06-06 13:07:50 +08:00
public override Type[] IncompatibleMods => Mods.SelectMany(m => m.IncompatibleMods).ToArray();
}
2018-01-05 19:21:19 +08:00
}