尝试使用源生成器规范NodeModel代码逻辑

This commit is contained in:
fengjiayi
2024-10-20 12:10:57 +08:00
parent 9931fa7436
commit e38833a58c
127 changed files with 5173 additions and 1839 deletions

View File

@@ -1,7 +1,5 @@
using Serein.Library.Api;
using Serein.Library.Entity;
using Serein.Library.Enums;
using Serein.NodeFlow.Base;
using Serein.Library;
using Serein.Library.Api;
namespace Serein.NodeFlow.Model
{
@@ -12,10 +10,12 @@ namespace Serein.NodeFlow.Model
public class CompositeActionNode : NodeModelBase
{
public List<SingleActionNode> ActionNodes;
/// <summary>
/// 组合动作节点(用于动作区域)
/// </summary>
public CompositeActionNode(List<SingleActionNode> actionNodes)
public CompositeActionNode(IFlowEnvironment environment, List<SingleActionNode> actionNodes):base(environment)
{
ActionNodes = actionNodes;
}
@@ -30,6 +30,7 @@ namespace Serein.NodeFlow.Model
{
return [];
}
public override NodeInfo? ToInfo()
{
if (MethodDetails is null) return null;