using System; using TNode.Attribute; using TNode.BaseModels; using UnityEngine; namespace TNode.Models{ /// /// this class is used to store the data of a node /// inherit it to implement your own node /// when declare a port for this node,you can use attribute [PortTypeName] on a field to claim a port.a port will not be inspected by default inspector. /// fields that are not marked with [PortTypeName] will be inspected by default inspector. /// /// [Serializable] public class NodeData:IModel{ public NodeData() : base(){ //Object Registration } public string nodeName; [ShowInNodeView] public bool entryPoint; // #if UNITY_EDITOR // public Rect rect; // #endif } }