Example #1
0
 /// <summary>
 /// Determines whether Computer has a certain vanilla port.
 /// </summary>
 /// <returns><c>true</c>, if Computer has the port, <c>false</c> otherwise.</returns>
 /// <param name="portNum">The port number to search by.</param>
 public static bool HasVanillaPort(this Hacknet.Computer comp, int portNum) =>
 comp.HasVanilaPort(ExeInfoManager.GetExecutableInfo(portNum));
Example #2
0
 /// <summary>
 /// Determines whether Computer has a certain vanilla port.
 /// </summary>
 /// <returns><c>true</c>, if Computer has the port, <c>false</c> otherwise.</returns>
 /// <param name="portName">The port name to search by.</param>
 public static bool HasVanillaPort(this Hacknet.Computer comp, string portName) =>
 comp.HasVanilaPort(ExeInfoManager.GetExecutableInfo(portName));