/// <summary> /// Adds a EOS Device connection represented by device /// </summary> /// <param name="comp">The Computer.</param> /// <param name="device">The Computer device to link to.</param> public static void AddEOSDevice(this Hacknet.Computer comp, Hacknet.Computer device) { if (comp.attatchedDeviceIDs == null) { comp.attatchedDeviceIDs = device.idName; } else { comp.attatchedDeviceIDs += ',' + device.idName; } if (!comp.GetNetworkMap().nodes.Contains(device)) { comp.GetNetworkMap().nodes.Add(device); } device.AddLink(comp); }