using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using static Serein.Library.Utils.ChannelFlowInterrupt; namespace Serein.Library.Entity { public class NodeDebugSetting { /// /// 是否使能(调试中断功能) /// public bool IsEnable { get; set; } = true; /// /// 是否监视数据改变 /// // public bool IsMonitorFlowData { get; set; } = false; /// /// 中断级别,暂时停止继续执行后继分支。 /// public InterruptClass InterruptClass { get; set; } = InterruptClass.None; /// /// 中断表达式 /// // public List InterruptExpressions { get; } = new List(); /// /// 取消中断的回调函数 /// public Action CancelInterruptCallback { get; set; } /// /// 中断Task /// public Func> GetInterruptTask { get; set; } } /// /// 中断级别,暂时停止继续执行后继分支。 /// public enum InterruptClass { /// /// 不中断 /// None, /// /// 分支中断,中断进入当前节点的分支。 /// Branch, /// /// 分组中断,中断进入指定节点分组的分支。(暂未实现相关) /// // Group, /// /// 全局中断,中断全局所有节点的运行。(暂未实现相关) /// Global, } }