2017-02-17 04:05:03 +08:00
|
|
|
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
|
|
using osu.Game.Graphics;
|
2017-03-12 21:13:43 +08:00
|
|
|
|
using System;
|
2017-02-17 04:05:03 +08:00
|
|
|
|
|
2017-04-18 15:05:58 +08:00
|
|
|
|
namespace osu.Game.Rulesets.Mods
|
2017-02-17 04:05:03 +08:00
|
|
|
|
{
|
2017-02-23 19:59:27 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The base class for gameplay modifiers.
|
|
|
|
|
/// </summary>
|
2017-02-18 19:44:46 +08:00
|
|
|
|
public abstract class Mod
|
2017-02-17 04:05:03 +08:00
|
|
|
|
{
|
2017-02-23 19:57:58 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The name of this mod.
|
|
|
|
|
/// </summary>
|
2017-03-06 17:28:30 +08:00
|
|
|
|
public abstract string Name { get; }
|
2017-02-23 19:57:58 +08:00
|
|
|
|
|
2017-08-13 23:41:13 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The shortened name of this mod.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public abstract string ShortenedName { get; }
|
|
|
|
|
|
2017-02-23 19:57:58 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The icon of this mod.
|
|
|
|
|
/// </summary>
|
2017-03-06 17:28:30 +08:00
|
|
|
|
public virtual FontAwesome Icon => FontAwesome.fa_question;
|
2017-02-23 19:57:58 +08:00
|
|
|
|
|
2017-05-03 02:36:55 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The type of this mod.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public virtual ModType Type => ModType.Special;
|
|
|
|
|
|
2017-02-23 19:57:58 +08:00
|
|
|
|
/// <summary>
|
2017-03-02 08:57:33 +08:00
|
|
|
|
/// The user readable description of this mod.
|
2017-02-23 19:57:58 +08:00
|
|
|
|
/// </summary>
|
2017-03-06 17:28:30 +08:00
|
|
|
|
public virtual string Description => string.Empty;
|
2017-02-23 19:57:58 +08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2017-03-02 08:57:33 +08:00
|
|
|
|
/// The score multiplier of this mod.
|
2017-02-23 19:57:58 +08:00
|
|
|
|
/// </summary>
|
2017-03-02 08:57:33 +08:00
|
|
|
|
public abstract double ScoreMultiplier { get; }
|
2017-02-23 19:57:58 +08:00
|
|
|
|
|
2017-12-31 03:09:51 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Returns true if this mod is implemented (and playable).
|
|
|
|
|
/// </summary>
|
|
|
|
|
public virtual bool HasImplementation => this is IApplicableMod;
|
|
|
|
|
|
2017-02-23 19:57:58 +08:00
|
|
|
|
/// <summary>
|
2017-03-02 08:57:33 +08:00
|
|
|
|
/// Returns if this mod is ranked.
|
2017-02-23 19:57:58 +08:00
|
|
|
|
/// </summary>
|
2017-03-06 17:28:30 +08:00
|
|
|
|
public virtual bool Ranked => false;
|
2017-02-23 19:57:58 +08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2017-03-02 08:57:33 +08:00
|
|
|
|
/// The mods this mod cannot be enabled with.
|
2017-02-23 19:57:58 +08:00
|
|
|
|
/// </summary>
|
2017-03-06 17:28:30 +08:00
|
|
|
|
public virtual Type[] IncompatibleMods => new Type[] { };
|
2017-02-18 19:44:46 +08:00
|
|
|
|
}
|
2017-03-02 08:57:33 +08:00
|
|
|
|
}
|