Pathfinder  v3.0
The definitive Hacknet programmable modding system
Pathfinder.Command.Handler Class Reference

Public Member Functions

delegate bool CommandFunc (OS os, List< string > args)
 

Static Public Member Functions

static string RegisterCommand (string key, CommandFunc function, string description=null, bool autoComplete=false)
 Adds a command to the game. More...
 

Member Function Documentation

◆ CommandFunc()

delegate bool Pathfinder.Command.Handler.CommandFunc ( OS  os,
List< string >  args 
)

◆ RegisterCommand()

static string Pathfinder.Command.Handler.RegisterCommand ( string  key,
CommandFunc  function,
string  description = null,
bool  autoComplete = false 
)
static
Returns
The full mod command id if added to the game, null otherwise
Parameters
keyThe key used to run the command.
functionThe function run when command is input.
descriptionA description to input when help is command is run (if not null).
autoCompleteIf set to true then autocomplete for command is enabled.

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