mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-20 17:26:02 +08:00
Fixed commenting
This commit is contained in:
parent
61ca00ce31
commit
7a1726b342
@ -181,7 +181,7 @@ namespace XNode {
|
|||||||
else return fallback;
|
else return fallback;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary> Returns a value based on requested port output. Should be overridden before used. </summary>
|
/// <summary> Returns a value based on requested port output. Should be overridden in all derived nodes with outputs. </summary>
|
||||||
/// <param name="port">The requested port.</param>
|
/// <param name="port">The requested port.</param>
|
||||||
public virtual object GetValue(NodePort port) {
|
public virtual object GetValue(NodePort port) {
|
||||||
Debug.LogWarning("No GetValue(NodePort port) override defined for " + GetType());
|
Debug.LogWarning("No GetValue(NodePort port) override defined for " + GetType());
|
||||||
@ -194,7 +194,7 @@ namespace XNode {
|
|||||||
public virtual void OnCreateConnection(NodePort from, NodePort to) { }
|
public virtual void OnCreateConnection(NodePort from, NodePort to) { }
|
||||||
|
|
||||||
/// <summary> Called after a connection is removed from this port </summary>
|
/// <summary> Called after a connection is removed from this port </summary>
|
||||||
/// <param name="from">Output</param> <param name="to">Input</param>
|
/// <param name="port">Output or Input</param>
|
||||||
public virtual void OnRemoveConnection(NodePort port) { }
|
public virtual void OnRemoveConnection(NodePort port) { }
|
||||||
|
|
||||||
/// <summary> Disconnect everything from this node </summary>
|
/// <summary> Disconnect everything from this node </summary>
|
||||||
|
|||||||
@ -34,7 +34,7 @@ namespace XNode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary> Safely remove a node and all its connections </summary>
|
/// <summary> Safely remove a node and all its connections </summary>
|
||||||
/// <param name="node"></param>
|
/// <param name="node"> The node to remove </param>
|
||||||
public void RemoveNode(Node node) {
|
public void RemoveNode(Node node) {
|
||||||
node.ClearConnections();
|
node.ClearConnections();
|
||||||
nodes.Remove(node);
|
nodes.Remove(node);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user