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

Static Public Member Functions

static List< Hacknet.ExeModuleGetExesFor (this Hacknet.OS os, Type instanceType)
 Retrieves the List of ExeModule whose Type is exactly instanceType More...
 
static List< T > GetExesFor< T > (this Hacknet.OS os)
 Retrieves the List of ExeModule List whose Type is or is derived from T More...
 
static List< Executable.Instance > GetModExeInterfaceFor (this Hacknet.OS os, Type interfaceType)
 Retrieves the List of Executable.Instance whose Type is exactly instanceType More...
 
static List< Executable.Instance > GetModExeInterfaceFor< T > (this Hacknet.OS os)
 Retrieves the List of Executable.Instance List whose Type is or is derived from T More...
 
static bool KillExecutableModule (this Hacknet.OS os, Hacknet.ExeModule module, bool shouldWrite=false)
 Kills the ExeModules on the OS. More...
 
static bool KillExecutableModule (this Hacknet.OS os, string input, bool searchName=false, bool shouldWrite=false)
 Kills the first ExeModules on the OS that matches the string. More...
 
static void KillAllExecutableModules (this Hacknet.OS os, bool shouldWrite=false)
 Kills all ExeModules. More...
 
static Hacknet.Computer GetCurrentComputer (this Hacknet.OS os)
 Retrieves the active network Computer according to the OS More...
 
static Hacknet.OS Write (this Hacknet.OS os, string write, params object[] args)
 Writes the formatted string to OS terminal. More...
 
static Hacknet.OS WriteSingle (this Hacknet.OS os, string write, params object[] args)
 Writes the formatted string directly to OS terminal. Less safe then Write More...
 

Member Function Documentation

◆ GetCurrentComputer()

static Hacknet.Computer Pathfinder.Game.OS.Extensions.GetCurrentComputer ( this Hacknet.OS  os)
static

◆ GetExesFor()

static List<Hacknet.ExeModule> Pathfinder.Game.OS.Extensions.GetExesFor ( this Hacknet.OS  os,
Type  instanceType 
)
static
Parameters
instanceTypeThe exact Type to search for in the Executable List

◆ GetExesFor< T >()

static List<T> Pathfinder.Game.OS.Extensions.GetExesFor< T > ( this Hacknet.OS  os)
static
Template Parameters
TThe Type or derivative of the type to search for in the Executable List
Type Constraints
T :Hacknet.ExeModule 

◆ GetModExeInterfaceFor()

static List<Executable.Instance> Pathfinder.Game.OS.Extensions.GetModExeInterfaceFor ( this Hacknet.OS  os,
Type  interfaceType 
)
static
Parameters
interfaceTypeThe exact Type to search for in the Executable List

◆ GetModExeInterfaceFor< T >()

static List<Executable.Instance> Pathfinder.Game.OS.Extensions.GetModExeInterfaceFor< T > ( this Hacknet.OS  os)
static
Template Parameters
TThe Type or derivative of the type to search for in the Executable List
Type Constraints
T :Executable.IInterface 

◆ KillAllExecutableModules()

static void Pathfinder.Game.OS.Extensions.KillAllExecutableModules ( this Hacknet.OS  os,
bool  shouldWrite = false 
)
static
Parameters
osThe OS.
shouldWriteIf set to true will write success to the OS.

◆ KillExecutableModule() [1/2]

static bool Pathfinder.Game.OS.Extensions.KillExecutableModule ( this Hacknet.OS  os,
Hacknet.ExeModule  module,
bool  shouldWrite = false 
)
static
Returns
true, if ExeModule was killed, false otherwise.
Parameters
osThe OS.
moduleThe ExeModule to kill.
shouldWriteIf set to true then success will be written to the OS.

◆ KillExecutableModule() [2/2]

static bool Pathfinder.Game.OS.Extensions.KillExecutableModule ( this Hacknet.OS  os,
string  input,
bool  searchName = false,
bool  shouldWrite = false 
)
static
Returns
true, if ExeModule was killed, false otherwise.
Parameters
osThe OS.
inputThe input string (or string representation of the integer PID) to search against.
searchNameIf set to true then can search by IdentifierName.
shouldWriteIf set to true will write success and failure to the OS.

◆ Write()

static Hacknet.OS Pathfinder.Game.OS.Extensions.Write ( this Hacknet.OS  os,
string  write,
params object []  args 
)
static
Parameters
osThe OS.
writeThe formatted string to write.

◆ WriteSingle()

static Hacknet.OS Pathfinder.Game.OS.Extensions.WriteSingle ( this Hacknet.OS  os,
string  write,
params object []  args 
)
static
Parameters
osThe OS.
writeThe formatted string to write.

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