// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using osu.Framework.Graphics.Sprites; namespace osu.Game.Rulesets.Mods { public interface IMod : IEquatable { /// /// The shortened name of this mod. /// string Acronym { get; } /// /// The name of this mod. /// string Name { get; } /// /// The user readable description of this mod. /// string Description { get; } /// /// The type of this mod. /// ModType Type { get; } /// /// The icon of this mod. /// IconUsage? Icon { get; } /// /// Whether this mod is playable for the given usage. /// /// /// /// Should be always false for cases where the user is not interacting with the game. /// Should be false in for mods that make gameplay duration dependent on user input (e.g. ). /// Should be false in for mods that affect the gameplay duration (e.g. and ). /// /// /// The mod usage. bool IsPlayable(ModUsage usage); /// /// Whether this mod is playable by an end user. /// Should be false for cases where the user is not interacting with the game (so it can be excluded from multiplayer selection, for example). /// [Obsolete("Override IsPlayable instead.")] // Can be removed 20221104 bool UserPlayable { get; } /// /// Create a fresh instance based on this mod. /// Mod CreateInstance() => (Mod)Activator.CreateInstance(GetType()); } }