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

Represents a command for the AVR_Devconsole

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 250 of file AVR_DevConsole.cs.

250  {
251  this.name = name;
252  this.func = func;
253  this.min_args = min_args;
254  this.desc = desc;
255  }