// 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.Allocation; using osu.Framework.Bindables; namespace osu.Game.Rulesets { public abstract class BindableRulesetSelector : RulesetSelector { [BackgroundDependencyLoader] private void load(Bindable parentRuleset) { Current.BindTo(parentRuleset); Current.BindValueChanged(OnRulesetChanged); } protected abstract void OnRulesetChanged(ValueChangedEvent e); } }