Files
EnglewoodLAB/Assets/Scripts/UVC/UI/Commands/IUndoableCommand.cs

23 lines
686 B
C#

#nullable enable
namespace UVC.UI.Commands
{
/// <summary>
/// Undo/Redo 가능한 Command 인터페이스
/// ICommand + IUndoable 통합
/// </summary>
public interface IUndoableCommand : ICommand, IUndoable
{
/// <summary>작업 설명 (UI 표시용, 예: "객체 복제", "Node 삭제")</summary>
string Description { get; }
/// <summary>다시 실행</summary>
void Redo();
/// <summary>연속 동작 병합 가능 여부 (예: 연속 Transform 변경)</summary>
bool CanMerge(IUndoableCommand other);
/// <summary>연속 동작 병합</summary>
void Merge(IUndoableCommand other);
}
}