Files
ichni_Creator_Studio/Assets/Scripts/CommandSystem/ICommand.cs

20 lines
534 B
C#
Raw Normal View History

2026-03-22 12:05:32 -04:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Ichni.Editor.Commands
{
public interface ICommand
{
void Execute();
void Undo();
void Redo();
/// <summary>
/// 尝试与另一个指令合并。常用于连续滑块拖拽合并等。
/// 若返回 true则表示合并成功other 指令会被废弃,并且本指令负责更新自身的目标结果。
/// </summary>
bool TryMerge(ICommand other);
}
}