【a】可视化剧本编辑器 10.StoryEditor
This commit is contained in:
23
Assets/10.StoryEditor/RunTime/Data/Node/NodeData.cs
Normal file
23
Assets/10.StoryEditor/RunTime/Data/Node/NodeData.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
|
||||
namespace Stary.Evo.StoryEditor
|
||||
{
|
||||
/// <summary>
|
||||
/// 节点数据
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class NodeData
|
||||
{
|
||||
/// <summary>
|
||||
/// 节点名称
|
||||
/// </summary>
|
||||
public string name = "Unnamed Node";
|
||||
/// <summary>
|
||||
/// 节点类型
|
||||
/// </summary>
|
||||
public NodeType type = NodeType.Empty;
|
||||
|
||||
public NodePlayer GetPlayer(GraphPlayer graph)=>
|
||||
new(graph, this);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user