1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-02 03:59:54 +08:00
Files
osu-lazer/osu.Game/Rulesets/Mods/MultiMod.cs
T
Bartłomiej Dach 926f1c99c7 Obsolete Mod.ScoreMultiplier and remove all other references to it (#37846)
- Part of https://github.com/ppy/osu/issues/37818
- [x] Depends on https://github.com/ppy/osu/pull/37845

Purely mechanical, split away for ease of review / due to size.

---------

Co-authored-by: Dean Herbert <pe@ppy.sh>
2026-05-27 16:09:16 +09:00

28 lines
816 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;
using osu.Framework.Localisation;
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 Mod[] Mods { get; }
public MultiMod(params Mod[] mods)
{
Mods = mods;
}
public override Mod DeepClone() => new MultiMod(Mods.Select(m => m.DeepClone()).ToArray());
public override Type[] IncompatibleMods => Mods.SelectMany(m => m.IncompatibleMods).ToArray();
}
}