mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-04-02 22:36:35 +08:00
从节点Model解耦出容器接口,重新设计了节点的保存、加载。
This commit is contained in:
31
Library/Api/INodeContainer.cs
Normal file
31
Library/Api/INodeContainer.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
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>
|
||||
/// 放置一个节点
|
||||
/// </summary>
|
||||
/// <param name="nodeModel"></param>
|
||||
void PlaceNode(NodeModelBase nodeModel);
|
||||
|
||||
/// <summary>
|
||||
/// 取出一个节点
|
||||
/// </summary>
|
||||
/// <param name="nodeModel"></param>
|
||||
void TakeOutNode(NodeModelBase nodeModel);
|
||||
|
||||
/// <summary>
|
||||
/// 取出所有节点(用于删除容器)
|
||||
/// </summary>
|
||||
void TakeOutAll();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user