Files
plugin-library/Assets/10.StoryEditor/RunTime/Data/Node/FlowNodeData.cs

34 lines
778 B
C#
Raw Normal View History

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);
}
}