Pathfinder  v3.0
The definitive Hacknet programmable modding system
Pathfinder.Game.Computer.Extensions Class Reference

Static Public Member Functions

static Daemon.Instance AddModdedDaemon (this Hacknet.Computer comp, string interfaceId, Dictionary< string, string > input=null)
 Adds a modded Daemon via the interface id string to the Computer. More...
 
static List< Hacknet.DaemonGetDaemonList (this Hacknet.Computer comp, Type daemonType)
 Retrieves a List of daemons exactly of Daemon from the Computer More...
 
static List< T > GetDaemonList< T > (this Hacknet.Computer comp)
 Retrieves a List of Daemons whose Type is or is derived from T, pulled from Computer More...
 
static Daemon.Instance GetModdedDaemon (this Hacknet.Computer comp, Type modInterface)
 Retrieves the first Daemon.Instance whose interface Type is exactly modInterface. More...
 
static Daemon.Instance GetModdedDaemon< T > (this Hacknet.Computer comp)
 Retrieves the first mod Daemon.Instance whose interface Type is or is derived from T. More...
 
static List< Daemon.Instance > GetModdedDaemonList (this Hacknet.Computer comp, Type modInterface)
 Retrieves a List of Daemon.Instance whose interface Type is exactly modInterface. More...
 
static List< Daemon.Instance > GetModdedDaemonList< T > (this Hacknet.Computer comp)
 Retrieves a List of mod Daemon.Instance whose interface Type is or is derived from T More...
 
static bool AddLink (this Hacknet.Computer comp, Hacknet.Computer newLink)
 Adds a link on the NetworkMap from Computer connecting to newLink. More...
 
static Hacknet.OS GetOS (this Hacknet.Computer comp)
 Retireves the OS of Computer. More...
 
static Hacknet.NetworkMap GetNetworkMap (this Hacknet.Computer comp)
 Retrieves the NetworkMap of Computer. More...
 
static bool AddVanillaPort (this Hacknet.Computer comp, ExeInfoManager.ExecutableInfo info, bool unlocked=false)
 Adds a vanilla port by ExecutableInfo. More...
 
static bool AddVanillaPort (this Hacknet.Computer comp, string portName, bool unlocked=false)
 Adds a vanilla port by port name. More...
 
static bool AddVanillaPort (this Hacknet.Computer comp, int portNum, bool unlocked=false)
 Adds a vanilla port by port number. More...
 
static bool AddModPort (this Hacknet.Computer comp, Port.Type port, bool unlocked=false)
 Adds the mod port by port type. More...
 
static bool AddModPort (this Hacknet.Computer comp, string id, bool unlocked=false)
 Adds the mod port by the modded port's registry id. More...
 
static bool RemoveVanillaPort (this Hacknet.Computer comp, ExeInfoManager.ExecutableInfo info)
 Removes a vanilla port by ExecutableInfo. More...
 
static bool RemoveVanillaPort (this Hacknet.Computer comp, string portName)
 Removes a vanilla port by port name. More...
 
static bool RemoveVanillaPort (this Hacknet.Computer comp, int portNum)
 Removes a vanilla port by port number. More...
 
static bool RemoveModPort (this Hacknet.Computer comp, Port.Type port)
 
static bool RemoveModPort (this Hacknet.Computer comp, string id)
 
static IList< Port.Instance > GetModdedPortList (this Hacknet.Computer comp)
 Gets a read-only list of modded ports. More...
 
static bool HasVanilaPort (this Hacknet.Computer comp, ExeInfoManager.ExecutableInfo info)
 Determines whether Computer has a certain vanilla port. More...
 
static bool HasVanillaPort (this Hacknet.Computer comp, string portName)
 Determines whether Computer has a certain vanilla port. More...
 
static bool HasVanillaPort (this Hacknet.Computer comp, int portNum)
 Determines whether Computer has a certain vanilla port. More...
 
static bool HasModPort (this Hacknet.Computer comp, Port.Type port)
 Determines whether Computer has a certain mod port. More...
 
static bool HasModPort (this Hacknet.Computer comp, string id)
 Determines whether Computer has a certain mod port. More...
 
static bool IsVanillaPortOpen (this Hacknet.Computer comp, ExeInfoManager.ExecutableInfo info)
 Determines whether the vanilla port is open. More...
 
static bool IsVanillaPortOpen (this Hacknet.Computer comp, string portName)
 Determines whether the vanilla port is open. More...
 
static bool IsVanillaPortOpen (this Hacknet.Computer comp, int portNum)
 Determines whether the vanilla port is open. More...
 
static bool IsModPortOpen (this Hacknet.Computer comp, Port.Type port)
 Determines whether the modded port is open. More...
 
static bool IsModPortOpen (this Hacknet.Computer comp, string id)
 Determines whether the mod port is open. More...
 
static void OpenVanillaPort (this Hacknet.Computer comp, ExeInfoManager.ExecutableInfo info, string ipFrom=null)
 Opens a vanilla port. Doesn't add a port More...
 
static void OpenVanillaPort (this Hacknet.Computer comp, string portName, string ipFrom=null)
 Opens a vanilla port. Doesn't add a port More...
 
static void OpenVanillaPort (this Hacknet.Computer comp, int portNum, string ipFrom=null)
 Opens a vanilla port. Doesn't add a port More...
 
static void OpenModPort (this Hacknet.Computer comp, Port.Type port, string ipFrom=null)
 Opens a mod port. Doesn't add a port More...
 
static void OpenModPort (this Hacknet.Computer comp, string id, string ipFrom=null)
 Opens a mod port. Doesn't add a port More...
 
static void CloseVanillaPort (this Hacknet.Computer comp, ExeInfoManager.ExecutableInfo info, string ipFrom=null)
 Closes a vanilla port. Doesn't add a port More...
 
static void CloseVanillaPort (this Hacknet.Computer comp, string portName, string ipFrom=null)
 Closes a vanilla port. Doesn't add a port More...
 
static void CloseVanillaPort (this Hacknet.Computer comp, int portNum, string ipFrom=null)
 Closes a vanilla port. Doesn't add a port More...
 
static void CloseModPort (this Hacknet.Computer comp, Port.Type port, string ipFrom=null)
 Closes a mod port. Doesn't add a port More...
 
static void CloseModPort (this Hacknet.Computer comp, string id, string ipFrom=null)
 Closes a mod port. Doesn't add a port More...
 
static void AddEOSDevice (this Hacknet.Computer comp, Hacknet.Computer device)
 Adds a EOS Device connection represented by device More...
 
static Hacknet.Computer CreateEOSDeviceOn (this Hacknet.Computer comp, string name="Unregistered eOS Device", string ip=null, string icon="ePhone", Vector2? location=null, string password="alpine", List< int > vanillaPorts=null, int portCracksRequired=2, Hacknet.Folder eosFolder=null, List< Port.Type > modPorts=null)
 Creates the EOS Device connected to Computer. More...
 
static Dictionary< string, Hacknet.ComputerGetEOSDevicesBy (this Hacknet.Computer comp, RetrieveType retType)
 Gets the EOS Devices sorted by retType. More...
 
static Dictionary< string, Hacknet.ComputerGetEOSDevicesById (this Hacknet.Computer comp)
 Sorts EOS Devices by ids More...
 
static Dictionary< string, Hacknet.ComputerGetEOSDevicesByIp (this Hacknet.Computer comp)
 Sorts EOS Devices by ips More...
 
static Dictionary< string, Hacknet.ComputerGetEOSDevicesByName (this Hacknet.Computer comp)
 Sorts EOS Devices by names More...
 
static Dictionary< string, Hacknet.ComputerGetEOSDevicesByIndex (this Hacknet.Computer comp)
 Sorts EOS Devices by NetworkMap indexes More...
 

Member Function Documentation

◆ AddEOSDevice()

static void Pathfinder.Game.Computer.Extensions.AddEOSDevice ( this Hacknet.Computer  comp,
Hacknet.Computer  device 
)
static
Parameters
compThe Computer.
deviceThe Computer device to link to.

◆ AddLink()

static bool Pathfinder.Game.Computer.Extensions.AddLink ( this Hacknet.Computer  comp,
Hacknet.Computer  newLink 
)
static
Returns
true, if the link was added, false otherwise.
Parameters
compThe Computer
newLinkThe New link.

◆ AddModdedDaemon()

static Daemon.Instance Pathfinder.Game.Computer.Extensions.AddModdedDaemon ( this Hacknet.Computer  comp,
string  interfaceId,
Dictionary< string, string >  input = null 
)
static
Returns
The modded Daemon instance.
Parameters
compThe Computer
interfaceIdInterface Identifier.
inputThe input for the LoadInstance interface function.

◆ AddModPort() [1/2]

static bool Pathfinder.Game.Computer.Extensions.AddModPort ( this Hacknet.Computer  comp,
Port.Type  port,
bool  unlocked = false 
)
static
Returns
true, if mod port was added, false otherwise.
Parameters
compThe Computer
portThe Port.Type to add to Computer
unlockedIf set to true then sets the port to be unlocked.

◆ AddModPort() [2/2]

static bool Pathfinder.Game.Computer.Extensions.AddModPort ( this Hacknet.Computer  comp,
string  id,
bool  unlocked = false 
)
static
Returns
true, if mod port was added, false otherwise.
Parameters
compThe Computer
idThe modded port's registry id to add to Computer
unlockedIf set to true then sets the port to be unlocked.

◆ AddVanillaPort() [1/3]

static bool Pathfinder.Game.Computer.Extensions.AddVanillaPort ( this Hacknet.Computer  comp,
ExeInfoManager.ExecutableInfo  info,
bool  unlocked = false 
)
static
Returns
true, if vanilla port was added, false otherwise.
Parameters
compThe Computer
infoThe ExecutableInfo for the port
unlockedIf set to true then sets the port to be unlocked.

◆ AddVanillaPort() [2/3]

static bool Pathfinder.Game.Computer.Extensions.AddVanillaPort ( this Hacknet.Computer  comp,
string  portName,
bool  unlocked = false 
)
static
Returns
true, if vanilla port was added, false otherwise.
Parameters
compThe Computer
portNameThe name for the port
unlockedIf set to true then sets the port to be unlocked.

◆ AddVanillaPort() [3/3]

static bool Pathfinder.Game.Computer.Extensions.AddVanillaPort ( this Hacknet.Computer  comp,
int  portNum,
bool  unlocked = false 
)
static
Returns
true, if vanilla port was added, false otherwise.
Parameters
compThe Computer
portNumThe number for the port
unlockedIf set to true then sets the port to be unlocked.

◆ CloseModPort() [1/2]

static void Pathfinder.Game.Computer.Extensions.CloseModPort ( this Hacknet.Computer  comp,
Port.Type  port,
string  ipFrom = null 
)
static
Parameters
compThe Computer.
portThe Port.Type to search for.
ipFromThe ip responsible for the change.

◆ CloseModPort() [2/2]

static void Pathfinder.Game.Computer.Extensions.CloseModPort ( this Hacknet.Computer  comp,
string  id,
string  ipFrom = null 
)
static
Parameters
compThe Computer.
idThe Type id to search for.
ipFromThe ip responsible for the change.

◆ CloseVanillaPort() [1/3]

static void Pathfinder.Game.Computer.Extensions.CloseVanillaPort ( this Hacknet.Computer  comp,
ExeInfoManager.ExecutableInfo  info,
string  ipFrom = null 
)
static
Parameters
compThe Computer.
infoThe ExecutableInfo to search for.
ipFromThe ip responsible for the change.

◆ CloseVanillaPort() [2/3]

static void Pathfinder.Game.Computer.Extensions.CloseVanillaPort ( this Hacknet.Computer  comp,
string  portName,
string  ipFrom = null 
)
static
Parameters
compThe Computer.
portNameThe port name to search for.
ipFromThe ip responsible for the change.

◆ CloseVanillaPort() [3/3]

static void Pathfinder.Game.Computer.Extensions.CloseVanillaPort ( this Hacknet.Computer  comp,
int  portNum,
string  ipFrom = null 
)
static
Parameters
compThe Computer.
portNumThe port number to search for.
ipFromThe ip responsible for the change.

◆ CreateEOSDeviceOn()

static Hacknet.Computer Pathfinder.Game.Computer.Extensions.CreateEOSDeviceOn ( this Hacknet.Computer  comp,
string  name = "Unregistered eOS Device",
string  ip = null,
string  icon = "ePhone",
Vector2 location = null,
string  password = "alpine",
List< int >  vanillaPorts = null,
int  portCracksRequired = 2,
Hacknet.Folder  eosFolder = null,
List< Port.Type >  modPorts = null 
)
static
Returns
The created EOS Device.
Parameters
compThe Computer.
nameThe device's name.
ipThe device's ip.
iconThe device's icon.
locationThe device's NetworkMap position.
passwordThe device's password, by game default should be alpine.
vanillaPortsThe device's closed vanilla port numbers.
portCracksRequiredThe device's cracked ports required to unlock.
eosFolderThe device's eos folder.
modPortsThe device's closed modded Port.Type List.

◆ GetDaemonList()

static List<Hacknet.Daemon> Pathfinder.Game.Computer.Extensions.GetDaemonList ( this Hacknet.Computer  comp,
Type  daemonType 
)
static

///

Parameters
daemonTypeThe exact Type to search for

◆ GetDaemonList< T >()

static List<T> Pathfinder.Game.Computer.Extensions.GetDaemonList< T > ( this Hacknet.Computer  comp)
static
Template Parameters
TThe Type or derivative of the type to search for in the Daemon List
Type Constraints
T :Hacknet.Daemon 
T :comp.daemons.Select 
T :arg 
T :arg 
T :as 
T :T 
T :ToList() 

◆ GetEOSDevicesBy()

static Dictionary<string, Hacknet.Computer> Pathfinder.Game.Computer.Extensions.GetEOSDevicesBy ( this Hacknet.Computer  comp,
RetrieveType  retType 
)
static
Returns
The EOS Devices.
Parameters
compThe Computer.
retTypeDetermines how to sort the devices.

◆ GetEOSDevicesById()

static Dictionary<string, Hacknet.Computer> Pathfinder.Game.Computer.Extensions.GetEOSDevicesById ( this Hacknet.Computer  comp)
static

◆ GetEOSDevicesByIndex()

static Dictionary<string, Hacknet.Computer> Pathfinder.Game.Computer.Extensions.GetEOSDevicesByIndex ( this Hacknet.Computer  comp)
static

◆ GetEOSDevicesByIp()

static Dictionary<string, Hacknet.Computer> Pathfinder.Game.Computer.Extensions.GetEOSDevicesByIp ( this Hacknet.Computer  comp)
static

◆ GetEOSDevicesByName()

static Dictionary<string, Hacknet.Computer> Pathfinder.Game.Computer.Extensions.GetEOSDevicesByName ( this Hacknet.Computer  comp)
static

◆ GetModdedDaemon()

static Daemon.Instance Pathfinder.Game.Computer.Extensions.GetModdedDaemon ( this Hacknet.Computer  comp,
Type  modInterface 
)
static
Parameters
modInterfaceThe exact Type to find

◆ GetModdedDaemon< T >()

static Daemon.Instance Pathfinder.Game.Computer.Extensions.GetModdedDaemon< T > ( this Hacknet.Computer  comp)
static
Template Parameters
TThe Type or derivative of the type to search for in the Daemon List
Type Constraints
T :Daemon.IInterface 
T :comp.GetModdedDaemonList<T>() 
T :ElementAtOrDefault 

◆ GetModdedDaemonList()

static List<Daemon.Instance> Pathfinder.Game.Computer.Extensions.GetModdedDaemonList ( this Hacknet.Computer  comp,
Type  modInterface 
)
static

///

Parameters
modInterfaceThe exact Type to find

◆ GetModdedDaemonList< T >()

static List<Daemon.Instance> Pathfinder.Game.Computer.Extensions.GetModdedDaemonList< T > ( this Hacknet.Computer  comp)
static
Template Parameters
TThe Type or derivative of the type to search for in the Daemon List
Type Constraints
T :Daemon.IInterface 

◆ GetModdedPortList()

static IList<Port.Instance> Pathfinder.Game.Computer.Extensions.GetModdedPortList ( this Hacknet.Computer  comp)
static
Returns
The list of modded ports.
Parameters
compThe Computer

◆ GetNetworkMap()

static Hacknet.NetworkMap Pathfinder.Game.Computer.Extensions.GetNetworkMap ( this Hacknet.Computer  comp)
static
Returns
The NetworkMap.
Parameters
compThe Computer

◆ GetOS()

static Hacknet.OS Pathfinder.Game.Computer.Extensions.GetOS ( this Hacknet.Computer  comp)
static
Returns
The OS.
Parameters
compThe Computer

◆ HasModPort() [1/2]

static bool Pathfinder.Game.Computer.Extensions.HasModPort ( this Hacknet.Computer  comp,
Port.Type  port 
)
static
Returns
true, if Computer has the port, false otherwise.
Parameters
portThe Port.Type to search by.

◆ HasModPort() [2/2]

static bool Pathfinder.Game.Computer.Extensions.HasModPort ( this Hacknet.Computer  comp,
string  id 
)
static
Returns
true, if Computer has the port, false otherwise.
Parameters
idThe modded port's registry id to search by.

◆ HasVanilaPort()

static bool Pathfinder.Game.Computer.Extensions.HasVanilaPort ( this Hacknet.Computer  comp,
ExeInfoManager.ExecutableInfo  info 
)
static
Returns
true, if Computer has the port, false otherwise.
Parameters
infoThe ExecutableInfo to search by.

◆ HasVanillaPort() [1/2]

static bool Pathfinder.Game.Computer.Extensions.HasVanillaPort ( this Hacknet.Computer  comp,
string  portName 
)
static
Returns
true, if Computer has the port, false otherwise.
Parameters
portNameThe port name to search by.

◆ HasVanillaPort() [2/2]

static bool Pathfinder.Game.Computer.Extensions.HasVanillaPort ( this Hacknet.Computer  comp,
int  portNum 
)
static
Returns
true, if Computer has the port, false otherwise.
Parameters
portNumThe port number to search by.

◆ IsModPortOpen() [1/2]

static bool Pathfinder.Game.Computer.Extensions.IsModPortOpen ( this Hacknet.Computer  comp,
Port.Type  port 
)
static
Returns
true, if the port exists and is open, false otherwise.
Parameters
compThe Computer
portThe Port.Type to find

◆ IsModPortOpen() [2/2]

static bool Pathfinder.Game.Computer.Extensions.IsModPortOpen ( this Hacknet.Computer  comp,
string  id 
)
static
Returns
true, if the port exists and is open, false otherwise.
Parameters
compThe Computer
idThe modded port's registry id to search by

◆ IsVanillaPortOpen() [1/3]

static bool Pathfinder.Game.Computer.Extensions.IsVanillaPortOpen ( this Hacknet.Computer  comp,
ExeInfoManager.ExecutableInfo  info 
)
static
Returns
true, if the port exists and is open, false otherwise.
Parameters
compThe Computer
infoThe ExecutableInfo to search by

◆ IsVanillaPortOpen() [2/3]

static bool Pathfinder.Game.Computer.Extensions.IsVanillaPortOpen ( this Hacknet.Computer  comp,
string  portName 
)
static
Returns
true, if the port exists and is open, false otherwise.
Parameters
compThe Computer
portNameThe port name to search by

◆ IsVanillaPortOpen() [3/3]

static bool Pathfinder.Game.Computer.Extensions.IsVanillaPortOpen ( this Hacknet.Computer  comp,
int  portNum 
)
static
Returns
true, if the port exists and is open, false otherwise.
Parameters
compThe Computer
portNumThe port number to search by

◆ OpenModPort() [1/2]

static void Pathfinder.Game.Computer.Extensions.OpenModPort ( this Hacknet.Computer  comp,
Port.Type  port,
string  ipFrom = null 
)
static
Parameters
compThe Computer.
portThe Port.Type to search for.
ipFromThe ip responsible for the change.

◆ OpenModPort() [2/2]

static void Pathfinder.Game.Computer.Extensions.OpenModPort ( this Hacknet.Computer  comp,
string  id,
string  ipFrom = null 
)
static
Parameters
compThe Computer.
idThe Type id to search for.
ipFromThe ip responsible for the change.

◆ OpenVanillaPort() [1/3]

static void Pathfinder.Game.Computer.Extensions.OpenVanillaPort ( this Hacknet.Computer  comp,
ExeInfoManager.ExecutableInfo  info,
string  ipFrom = null 
)
static
Parameters
compThe Computer.
infoThe ExecutableInfo to search for.
ipFromThe ip responsible for the change.

◆ OpenVanillaPort() [2/3]

static void Pathfinder.Game.Computer.Extensions.OpenVanillaPort ( this Hacknet.Computer  comp,
string  portName,
string  ipFrom = null 
)
static
Parameters
compThe Computer.
portNameThe port name to search for.
ipFromThe ip responsible for the change.

◆ OpenVanillaPort() [3/3]

static void Pathfinder.Game.Computer.Extensions.OpenVanillaPort ( this Hacknet.Computer  comp,
int  portNum,
string  ipFrom = null 
)
static
Parameters
compThe Computer.
portNumThe port number to search for.
ipFromThe ip responsible for the change.

◆ RemoveModPort() [1/2]

static bool Pathfinder.Game.Computer.Extensions.RemoveModPort ( this Hacknet.Computer  comp,
Port.Type  port 
)
static

◆ RemoveModPort() [2/2]

static bool Pathfinder.Game.Computer.Extensions.RemoveModPort ( this Hacknet.Computer  comp,
string  id 
)
static

◆ RemoveVanillaPort() [1/3]

static bool Pathfinder.Game.Computer.Extensions.RemoveVanillaPort ( this Hacknet.Computer  comp,
ExeInfoManager.ExecutableInfo  info 
)
static
Returns
true, if vanilla port was found and removed, false otherwise.
Parameters
compThe Computer
infoThe ExecutableInfo for the port

◆ RemoveVanillaPort() [2/3]

static bool Pathfinder.Game.Computer.Extensions.RemoveVanillaPort ( this Hacknet.Computer  comp,
string  portName 
)
static
Returns
true, if vanilla port was found and removed, false otherwise.
Parameters
compThe Computer
portNameThe name for the port

◆ RemoveVanillaPort() [3/3]

static bool Pathfinder.Game.Computer.Extensions.RemoveVanillaPort ( this Hacknet.Computer  comp,
int  portNum 
)
static
Returns
true, if vanilla port was found and removed, false otherwise.
Parameters
compThe Computer
portNumThe number for the port

The documentation for this class was generated from the following file: