public void ConnectTo(NavNodeMinor n, NavNodeConnection.NavConnectionType connectionType) { if (data._ConnectTo(n, connectionType) && n.navNodeMajor != navNodeMajor) { navNodeMajor.FormMajorToMajorConnection(this, n.navNodeMajor); } }
public virtual bool _ConnectTo(NavNode n, NavNodeConnection.NavConnectionType connectionType) { if (!ConnectedTo(n)) { connectionsHashed.Add(n); NavNodeConnection newConnection = new NavNodeConnection(); newConnection.connectedNode = n; newConnection.connectionType = connectionType; connections.Add(newConnection); return(true); } return(false); }