// Copyright (c) 2007-2018 ppy Pty Ltd . // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE namespace osu.Game.Configuration { /// /// A binding of a to an action. /// public class Setting { /// /// The combination of keys which will trigger this binding. /// public object Key; /// /// The resultant action which is triggered by this binding. /// public object Value; /// /// Construct a new instance. /// /// The combination of keys which will trigger this binding. /// The resultant action which is triggered by this binding. Usually an enum type. public Setting(object key, object value) { Key = key; Value = value; } /// /// Constructor for derived classes that may require serialisation. /// public Setting() { } public override string ToString() => $"{Key}=>{Value}"; } }