mirror of
https://github.com/ppy/osu.git
synced 2024-11-18 18:12:59 +08:00
28 lines
826 B
C#
28 lines
826 B
C#
// 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.
|
|
|
|
using System;
|
|
using System.Linq;
|
|
|
|
namespace osu.Game.Rulesets.Mods
|
|
{
|
|
public sealed class MultiMod : Mod
|
|
{
|
|
public override string Name => string.Empty;
|
|
public override string Acronym => string.Empty;
|
|
public override string Description => string.Empty;
|
|
public override double ScoreMultiplier => 0;
|
|
|
|
public Mod[] Mods { get; }
|
|
|
|
public MultiMod(params Mod[] mods)
|
|
{
|
|
Mods = mods;
|
|
}
|
|
|
|
public override Mod CreateCopy() => new MultiMod(Mods.Select(m => m.CreateCopy()).ToArray());
|
|
|
|
public override Type[] IncompatibleMods => Mods.SelectMany(m => m.IncompatibleMods).ToArray();
|
|
}
|
|
}
|