【a】可视化剧本编辑器 10.StoryEditor
This commit is contained in:
34
Assets/10.StoryEditor/RunTime/Data/Node/FlowNodeData.cs
Normal file
34
Assets/10.StoryEditor/RunTime/Data/Node/FlowNodeData.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user