1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-07 01:07:20 +08:00

60 lines
1.7 KiB
C#
Raw Normal View History

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