2022-03-09 08:13:51 +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.
|
|
|
|
|
2022-08-10 19:54:48 +00:00
|
|
|
using osu.Framework.Localisation;
|
|
|
|
|
2022-03-09 08:13:51 +00:00
|
|
|
namespace osu.Game.Rulesets.Mods
|
|
|
|
{
|
|
|
|
public class UnknownMod : Mod
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// The acronym of the mod which could not be resolved.
|
|
|
|
/// </summary>
|
|
|
|
public readonly string OriginalAcronym;
|
|
|
|
|
|
|
|
public override string Name => $"Unknown mod ({OriginalAcronym})";
|
|
|
|
public override string Acronym => $"{OriginalAcronym}??";
|
2022-08-10 19:54:48 +00:00
|
|
|
public override LocalisableString Description => "This mod could not be resolved by the game.";
|
2022-03-09 08:13:51 +00:00
|
|
|
public override double ScoreMultiplier => 0;
|
|
|
|
|
2022-05-05 11:37:38 +00:00
|
|
|
public override bool UserPlayable => false;
|
|
|
|
public override bool ValidForMultiplayer => false;
|
|
|
|
public override bool ValidForMultiplayerAsFreeMod => false;
|
2022-03-10 06:33:50 +00:00
|
|
|
|
2022-03-09 08:13:51 +00:00
|
|
|
public override ModType Type => ModType.System;
|
|
|
|
|
|
|
|
public UnknownMod(string acronym)
|
|
|
|
{
|
|
|
|
OriginalAcronym = acronym;
|
|
|
|
}
|
|
|
|
|
|
|
|
public override Mod DeepClone() => new UnknownMod(OriginalAcronym);
|
|
|
|
}
|
|
|
|
}
|