Files
ichni_Creator_Studio/Assets/Scripts/CommandSystem/ICommand.cs
SoulliesOfficial 731726239a 超级爆改
2026-03-22 12:05:32 -04:00

20 lines
534 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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);
}
}