改写NodeModelBase类,使其继承Serein.Library.Api下的IFlowNode接口,而实现类迁移到NodeModel项目,方便后续节点运行逻辑修改时不用重新编译类库。

This commit is contained in:
fengjiayi
2025-05-31 12:15:01 +08:00
parent cc0b084c84
commit 84390b574f
36 changed files with 562 additions and 121 deletions

View File

@@ -30,13 +30,13 @@ namespace Serein.Library
/// 画布拥有的节点
/// </summary>
[PropertyInfo(IsProtection = true)]
private System.Collections.ObjectModel.ObservableCollection<NodeModelBase> _nodes = [];
private System.Collections.ObjectModel.ObservableCollection<IFlowNode> _nodes = [];
/// <summary>
/// 画布公开的节点
/// </summary>
[PropertyInfo(IsProtection = true)]
private System.Collections.ObjectModel.ObservableCollection<NodeModelBase> _publicNodes = [];
private System.Collections.ObjectModel.ObservableCollection<IFlowNode> _publicNodes = [];
/// <summary>
/// 标识画布ID
@@ -90,7 +90,7 @@ namespace Serein.Library
/// 起始节点
/// </summary>
[PropertyInfo]
private NodeModelBase _startNode;
private IFlowNode _startNode;
}