// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Collections.Generic; namespace osu.Game.Screens.Edit.Commands { public abstract class CommandProxy { protected EditorCommandHandler? CommandHandler; protected CommandProxy(EditorCommandHandler? commandHandler) { CommandHandler = commandHandler; } protected void Submit(IEditorCommand command) => CommandHandler.SafeSubmit(command); protected void Submit(IEnumerable command) => CommandHandler.SafeSubmit(command); } }