1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 12:33:01 +08:00

Use init-only properties where applicable

This commit is contained in:
Bartłomiej Dach 2023-10-11 08:20:25 +02:00
parent 1acc02405e
commit 7ac874d17a
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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; }