1.优化了平移缩放逻辑

2.优化了触发器的执行,优化了节点执行时的代码逻辑
3.优化了节点方法委托的参数获取
This commit is contained in:
fengjiayi
2024-09-18 16:45:41 +08:00
parent 9041be139f
commit ef54c40d10
13 changed files with 640 additions and 743 deletions

View File

@@ -23,6 +23,12 @@ namespace Serein.NodeFlow.Base
SuccessorNodes[ctType] = [];
}
}
/// <summary>
/// 是否中断(调试中断功能)
/// </summary>
public bool IsInterrupt { get; set; }
/// <summary>
/// 节点对应的控件类型
/// </summary>
@@ -65,11 +71,6 @@ namespace Serein.NodeFlow.Base
public ConnectionType NextOrientation { get; set; } = ConnectionType.None;
/// <summary>
/// 当前执行状态(进入真分支还是假分支,异常分支在异常中确定)
/// </summary>
// public FlowStateType FlowState { get; set; } = FlowStateType.Cancel;
/// <summary>
/// 运行时的异常信息(仅在 FlowState 为 Error 时存在对应值)
/// </summary>
@@ -80,10 +81,17 @@ namespace Serein.NodeFlow.Base
/// </summary>
public object? FlowData { get; set; } = null;
// public NodeModelBaseBuilder Build() => new NodeModelBaseBuilder(this);
}
public class DebugInfo
{
/// <summary>
/// 是否中断
/// </summary>
public bool IsInterrupt { get;set; }
}
/// <summary>
/// 节点基类(数据):条件控件,动作控件,条件区域,动作区域