// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. 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 is currently filtered out due to not matching imposed criteria. /// public BindableBool Filtered { get; } = new BindableBool(); public ModState(Mod mod) { Mod = mod; } } }