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,
string  desc 
)
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.
descBrief description of how the command works/what it does. Is provided when used with the "help" command.

Definition at line 288 of file AVR_DevConsole.cs.

288  {
289  commands.Add(new AVR_ConsoleCommand(name, func, 0, desc));
290  }