Fix code style issues & restructure

This commit is contained in:
Bartłomiej Dach
2020-10-26 22:16:28 +01:00
parent 255bb9d100
commit 3f8c4c57d0
2 changed files with 18 additions and 30 deletions

View File

@ -120,6 +120,11 @@ namespace osu.Game.Rulesets.Edit
/// </summary>
public void Deselect() => State = SelectionState.NotSelected;
/// <summary>
/// Toggles the selection state of this <see cref="OverlaySelectionBlueprint"/>.
/// </summary>
public void ToggleSelection() => State = IsSelected ? SelectionState.NotSelected : SelectionState.Selected;
public bool IsSelected => State == SelectionState.Selected;
/// <summary>