mirror of
https://github.com/ppy/osu.git
synced 2025-01-27 14:12:56 +08:00
Add property for whether mod uses default configuration
This commit is contained in:
parent
b659e5e6ad
commit
6bfa5e53e0
@ -128,6 +128,11 @@ namespace osu.Game.Rulesets.Mods
|
|||||||
.Cast<IBindable>()
|
.Cast<IBindable>()
|
||||||
.ToList();
|
.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>
|
/// <summary>
|
||||||
/// Creates a copy of this <see cref="Mod"/> initialised to a default state.
|
/// Creates a copy of this <see cref="Mod"/> initialised to a default state.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user