1
0
mirror of https://github.com/Siccity/xNode.git synced 2026-03-26 22:49:02 +08:00

default name for all nodes

This commit is contained in:
wuhao 2019-06-19 17:20:17 +08:00
parent 0553dc8894
commit 11365b16b9

View File

@ -40,6 +40,12 @@ namespace XNode {
/// <summary> always override the current connection </summary>
Override,
}
protected virtual void Reset()
{
name = this.GetType().ToString();
var idx = name.LastIndexOf(".")+1;
name = name.Substring(idx, name.Length - idx);
}
/// <summary> Tells which types of input to allow </summary>
public enum TypeConstraint {