2019-01-24 16:43:03 +08: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.
|
2018-11-30 16:50:27 +08:00
|
|
|
|
|
2019-05-03 09:05:45 +08:00
|
|
|
|
using System;
|
2021-09-10 10:09:13 +08:00
|
|
|
|
using osu.Framework.Graphics.Sprites;
|
2018-12-12 15:06:56 +08:00
|
|
|
|
|
2018-11-30 16:50:27 +08:00
|
|
|
|
namespace osu.Game.Rulesets.Mods
|
2018-11-30 16:16:00 +08:00
|
|
|
|
{
|
2019-05-03 09:05:45 +08:00
|
|
|
|
public interface IMod : IEquatable<IMod>
|
2018-11-30 16:16:00 +08:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The shortened name of this mod.
|
|
|
|
|
/// </summary>
|
|
|
|
|
string Acronym { get; }
|
2021-09-10 10:09:13 +08:00
|
|
|
|
|
2021-09-10 11:42:53 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The name of this mod.
|
|
|
|
|
/// </summary>
|
|
|
|
|
string Name { get; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The user readable description of this mod.
|
|
|
|
|
/// </summary>
|
|
|
|
|
string Description { get; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The type of this mod.
|
|
|
|
|
/// </summary>
|
|
|
|
|
ModType Type { get; }
|
|
|
|
|
|
2021-09-10 10:09:13 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The icon of this mod.
|
|
|
|
|
/// </summary>
|
|
|
|
|
IconUsage? Icon { get; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Whether this mod is playable by an end user.
|
|
|
|
|
/// Should be <c>false</c> for cases where the user is not interacting with the game (so it can be excluded from multiplayer selection, for example).
|
|
|
|
|
/// </summary>
|
|
|
|
|
bool UserPlayable { get; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Create a fresh <see cref="Mod"/> instance based on this mod.
|
|
|
|
|
/// </summary>
|
2021-09-10 11:05:10 +08:00
|
|
|
|
Mod CreateInstance() => (Mod)Activator.CreateInstance(GetType());
|
2018-11-30 16:16:00 +08:00
|
|
|
|
}
|
|
|
|
|
}
|