/// <summary> /// Tells the NetInterface that it's ready and is properly deployed. /// </summary> public void Ready() { if (cable != null) { cable.Ready(); } ready = true; }
/// <summary> /// Cable initiated to connect /// </summary> /// <param name="newCable">Cable calling the connection</param> public void CableConnected(Cable newCable) { if (cable == null) { cable = newCable; } else { // A cable is already connected, disconnect it cable.InterfaceDisconnected(this); // and connect the new one cable = newCable; cable.Ready(); } }