mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 14:17:26 +08:00
Use init-only properties where applicable
This commit is contained in:
parent
1acc02405e
commit
7ac874d17a
@ -37,11 +37,11 @@ namespace osu.Game.Overlays.Settings.Sections.Input
|
||||
/// <summary>
|
||||
/// Invoked when the binding of this row is updated with a change being written.
|
||||
/// </summary>
|
||||
public Action<KeyBindingRow> BindingUpdated { get; set; }
|
||||
public Action<KeyBindingRow> BindingUpdated { get; init; }
|
||||
|
||||
public bool AllowMainMouseButtons;
|
||||
public bool AllowMainMouseButtons { get; init; }
|
||||
|
||||
public IEnumerable<KeyCombination> Defaults;
|
||||
public IEnumerable<KeyCombination> Defaults { get; init; }
|
||||
|
||||
#region IFilterable
|
||||
|
||||
|
@ -25,7 +25,7 @@ namespace osu.Game.Overlays.Settings.Sections.Input
|
||||
/// </summary>
|
||||
protected virtual bool AutoAdvanceTarget => false;
|
||||
|
||||
protected IEnumerable<Framework.Input.Bindings.KeyBinding> Defaults;
|
||||
protected IEnumerable<Framework.Input.Bindings.KeyBinding> Defaults { get; init; }
|
||||
|
||||
public RulesetInfo Ruleset { get; protected set; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user