// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. #nullable disable using osu.Framework.Bindables; using osu.Game.Rulesets.Mods; namespace osu.Game.Overlays.Mods { /// /// Wrapper class used to store the current state of a mod shown on the . /// Used primarily to decouple data from drawable logic. /// public class ModState { /// /// The mod that whose state this instance describes. /// public Mod Mod { get; } /// /// Whether the mod is currently selected. /// public BindableBool Active { get; } = new BindableBool(); /// /// Whether the mod requires further customisation. /// This flag is read by the to determine if the customisation panel should be opened after a mod change /// and cleared after reading. /// public bool RequiresConfiguration { get; set; } /// /// Whether the mod is currently filtered out due to not matching imposed criteria. /// public BindableBool Filtered { get; } = new BindableBool(); public ModState(Mod mod) { Mod = mod; } } }