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:
parent
b659e5e6ad
commit
6bfa5e53e0
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user