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:
parent
0553dc8894
commit
11365b16b9
@ -40,6 +40,12 @@ namespace XNode {
|
|||||||
/// <summary> always override the current connection </summary>
|
/// <summary> always override the current connection </summary>
|
||||||
Override,
|
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>
|
/// <summary> Tells which types of input to allow </summary>
|
||||||
public enum TypeConstraint {
|
public enum TypeConstraint {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user