Files
serein-flow/Library/Api/INodeContainer.cs
fengjiayi 152077e9b5 1. 重新设计了Generate项目及相关特性的命名,避免与其他类型混淆。
2. 补充了部分注释。
3. 修改了删除容器节点时,容器内子节点未正确删除的问题。
2025-07-30 21:15:07 +08:00

36 lines
898 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;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Serein.Library.Api
{
/// <summary>
/// 约束具有容器功能的节点应该有什么方法
/// </summary>
public interface INodeContainer
{
/// <summary>
/// 容器节点的Guid与 IFlowNode.Guid 相同
/// </summary>
string Guid { get; }
/// <summary>
/// 放置一个节点
/// </summary>
/// <param name="nodeModel"></param>
bool PlaceNode(IFlowNode nodeModel);
/// <summary>
/// 取出一个节点
/// </summary>
/// <param name="nodeModel"></param>
bool TakeOutNode(IFlowNode nodeModel);
/// <summary>
/// 取出所有节点(用于删除容器)
/// </summary>
void TakeOutAll();
}
}