Skip to content

Commit

Permalink
Update IEditorCommand.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
OliBomby committed Oct 12, 2024
1 parent 20ce649 commit f6881f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions osu.Game/Screens/Edit/Commands/IEditorCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ public interface IEditorCommand
/// <summary>
/// Applies this command to the current state.
/// </summary>
public void Apply();
void Apply();

/// <summary>
/// Creates a command which undoes the change of this command.
/// </summary>
/// <returns>The undo command.</returns>
/// <remarks>Make sure to call this before calling <see cref="Apply"/>, as it reads the current state of the object.</remarks>
public IEditorCommand CreateUndo();
IEditorCommand CreateUndo();

/// <summary>
/// Whether this command would not have any meaningful effect if applied to the current state.
/// </summary>
public virtual bool IsRedundant => false;
bool IsRedundant => false;
}
}

0 comments on commit f6881f4

Please sign in to comment.