尝试将节点流导出为c#代码文件

This commit is contained in:
fengjiayi
2025-07-06 14:34:49 +08:00
parent 162dc7bcf8
commit b25fd9c83c
45 changed files with 1625 additions and 361 deletions

View File

@@ -46,9 +46,9 @@ namespace Serein.NodeFlow.Model.Operation
/// <summary>
/// 成为首项
/// </summary>
public override bool Execute()
public override Task<bool> ExecuteAsync()
{
if(!ValidationParameter()) return false;
if(!ValidationParameter()) return Task.FromResult(false);
if (FromNode.SuccessorNodes.TryGetValue(ConnectionType, out var nodes))
{
@@ -60,7 +60,7 @@ namespace Serein.NodeFlow.Model.Operation
nodes.Insert(0, ToNode);
}
}
return true;
return Task.FromResult(true);
}
/// <summary>