VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
static void AVR.Core.AVR_DevConsole.register_command ( string  name,
System.Action< string[]>  func,
int  min_args = 0,
string  desc = "No description given." 
)
inlinestatic

Registers a new command to the console.

Parameters
nameIdentifier-string for the command. This is the token a user should input to execute the command. Should contain no spaces.
funcAction performed when the command is executed.
min_argsMinimum amount of arguments the command requires. If less are provided an error is given to the user.
descBrief description of how the command works/what it does. Is provided when used with the "help" command.

Definition at line 277 of file AVR_DevConsole.cs.

277  {
278  commands.Add(new AVR_ConsoleCommand(name, func, min_args, desc));
279  }