【a】可视化剧本编辑器 10.StoryEditor

This commit is contained in:
mzh
2026-01-06 14:24:23 +08:00
parent f055116d4d
commit 2e8accfed8
80 changed files with 3145 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
namespace Stary.Evo.StoryEditor
{
/// <summary>
/// 空节点(流程节点)数据
/// </summary>
[Serializable]
public class FlowNodeData : NodeData
{
public List<int> pre = new();
public List<int> next = new();
/// <summary>
/// 后续连接执行类型
/// </summary>
public NodeExecuteType executeType = NodeExecuteType.Async;
public FlowNodeData()
{
}
public FlowNodeData(NodeData data)
{
name = data.name;
type = NodeType.Empty;
}
public new FlowNodePlayer GetPlayer(GraphPlayer graph)=>
new(graph, this);
}
}