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

Add property for whether mod uses default configuration

This commit is contained in:
Salman Ahmed 2022-07-18 07:21:10 +03:00
parent b659e5e6ad
commit 6bfa5e53e0

View File

@ -128,6 +128,11 @@ namespace osu.Game.Rulesets.Mods
.Cast<IBindable>()
.ToList();
/// <summary>
/// Whether all settings in this mod are set to their default state.
/// </summary>
protected virtual bool UsesDefaultConfiguration => Settings.All(s => s.IsDefault);
/// <summary>
/// Creates a copy of this <see cref="Mod"/> initialised to a default state.
/// </summary>