1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-11 02:43:22 +08:00
osu-lazer/osu.Game/Screens/Edit/Commands/CommandProxy.cs
2024-10-09 21:20:07 +02:00

22 lines
673 B
C#

// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. 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<IEditorCommand> command) => CommandHandler.SafeSubmit(command);
}
}