/// <summary> /// Constructor /// </summary> /// <param name="root">The block object thar contains this node</param> /// <param name="name">Name</param> /// <param name="shortName">Short name</param> protected BlockNodeBase(ref BlockBase root, string name, string shortName) { Root = root; Name = name; ShortName = shortName; ConnectingNode = null; }
/// <summary> /// Connect this input node to another node in other block /// </summary> /// <param name="node"></param> public void ConnectTo(ref BlockNodeBase node) { ConnectingNode = node; node.ConnectingNode = this; }