Example #1
0
 /// <summary>
 /// Determines whether the mod port is open.
 /// </summary>
 /// <returns><c>true</c>, if the port exists and is open, <c>false</c> otherwise.</returns>
 /// <param name="comp">The Computer</param>
 /// <param name="id">The modded port's registry id to search by</param>
 public static bool IsModPortOpen(this Hacknet.Computer comp, string id) =>
 comp.IsModPortOpen(Port.Handler.GetPort(id));