mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-06 09:40:48 +08:00
改写NodeModelBase类,使其继承Serein.Library.Api下的IFlowNode接口,而实现类迁移到NodeModel项目,方便后续节点运行逻辑修改时不用重新编译类库。
This commit is contained in:
@@ -49,14 +49,14 @@ namespace Serein.NodeFlow.Model
|
||||
/// <summary>
|
||||
/// 数据来源的节点
|
||||
/// </summary>
|
||||
private NodeModelBase? DataNode;
|
||||
private IFlowNode? DataNode;
|
||||
|
||||
/// <summary>
|
||||
/// 有节点被放置
|
||||
/// </summary>
|
||||
/// <param name="nodeModel"></param>
|
||||
/// <returns></returns>
|
||||
public bool PlaceNode(NodeModelBase nodeModel)
|
||||
public bool PlaceNode(IFlowNode nodeModel)
|
||||
{
|
||||
if(DataNode is null)
|
||||
{
|
||||
@@ -76,7 +76,7 @@ namespace Serein.NodeFlow.Model
|
||||
}
|
||||
|
||||
|
||||
public bool TakeOutNode(NodeModelBase nodeModel)
|
||||
public bool TakeOutNode(IFlowNode nodeModel)
|
||||
{
|
||||
if (ChildrenNode.Contains(nodeModel))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user