mirror of
https://github.com/ppy/osu.git
synced 2025-01-11 01:52:56 +08:00
22 lines
673 B
C#
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);
|
|
}
|
|
}
|