You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
970 B
36 lines
970 B
using System;
|
|
using TNodeCore.Attribute;
|
|
using UnityEngine;
|
|
|
|
namespace TNodeCore.Models{
|
|
/// <summary>
|
|
/// 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.
|
|
///
|
|
/// </summary>
|
|
[Serializable]
|
|
public class NodeData:IModel{
|
|
|
|
public NodeData() : base(){
|
|
//Object Registration
|
|
|
|
}
|
|
[DisableOnInspector]
|
|
public string id;
|
|
public string nodeName;
|
|
public bool entryPoint;
|
|
|
|
public virtual void Process(){
|
|
|
|
}
|
|
|
|
#if UNITY_EDITOR
|
|
[HideInInspector] public bool isTest;
|
|
public virtual void OnTest(){
|
|
|
|
}
|
|
#endif
|
|
}
|
|
} |