2019-01-24 08:43:03 +00:00
|
|
|
// 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 09:19:50 +00:00
|
|
|
|
2018-06-06 05:07:50 +00:00
|
|
|
using System;
|
|
|
|
using System.Linq;
|
2022-08-10 19:54:48 +00:00
|
|
|
using osu.Framework.Localisation;
|
2018-06-06 05:07:50 +00:00
|
|
|
|
2017-04-21 08:33:20 +00:00
|
|
|
namespace osu.Game.Rulesets.Mods
|
|
|
|
{
|
2020-10-14 09:12:19 +00:00
|
|
|
public sealed class MultiMod : Mod
|
2017-04-21 08:33:20 +00:00
|
|
|
{
|
|
|
|
public override string Name => string.Empty;
|
2018-11-30 08:16:00 +00:00
|
|
|
public override string Acronym => string.Empty;
|
2022-08-10 19:54:48 +00:00
|
|
|
public override LocalisableString Description => string.Empty;
|
2018-03-14 03:07:03 +00:00
|
|
|
public override double ScoreMultiplier => 0;
|
2018-04-13 09:19:50 +00:00
|
|
|
|
2018-06-06 05:07:50 +00:00
|
|
|
public Mod[] Mods { get; }
|
|
|
|
|
|
|
|
public MultiMod(params Mod[] mods)
|
|
|
|
{
|
|
|
|
Mods = mods;
|
|
|
|
}
|
|
|
|
|
2021-07-19 03:38:22 +00:00
|
|
|
public override Mod DeepClone() => new MultiMod(Mods.Select(m => m.DeepClone()).ToArray());
|
2020-10-14 09:12:19 +00:00
|
|
|
|
2018-06-06 05:07:50 +00:00
|
|
|
public override Type[] IncompatibleMods => Mods.SelectMany(m => m.IncompatibleMods).ToArray();
|
2017-04-21 08:33:20 +00:00
|
|
|
}
|
2018-01-05 11:21:19 +00:00
|
|
|
}
|