Class ConsoleCommandsDatabase
Use RegisterCommand() to register your own commands. Registered commands persist between scenes but don't persist between multiple application executions.
Inheritance
ConsoleCommandsDatabase
Assembly: Assembly-CSharp.dll
Syntax
public static class ConsoleCommandsDatabase
Properties
|
Improve this Doc
View Source
commands
Return all the commands in alphabetical order.
Declaration
public static IEnumerable<ConsoleCommand> commands { get; }
Property Value
Methods
|
Improve this Doc
View Source
ExecuteCommand(String, String[])
Declaration
public static string ExecuteCommand(string command, params string[] args)
Parameters
Returns
|
Improve this Doc
View Source
GetCommand(String)
Declaration
public static ConsoleCommand GetCommand(string command)
Parameters
Type |
Name |
Description |
String |
command |
|
Returns
|
Improve this Doc
View Source
HasCommand(String)
Declaration
public static bool HasCommand(string command)
Parameters
Type |
Name |
Description |
String |
command |
|
Returns
|
Improve this Doc
View Source
RegisterCommand(String, String, String, ConsoleCommandCallback)
Declaration
public static void RegisterCommand(string command, string description, string usage, ConsoleCommandCallback callback)
Parameters
|
Improve this Doc
View Source
RegisterCommand(String, ConsoleCommandCallback, String, String)
Declaration
public static void RegisterCommand(string command, ConsoleCommandCallback callback, string description = "", string usage = "")
Parameters
|
Improve this Doc
View Source
TryGetCommand(String, out ConsoleCommand)
Declaration
public static bool TryGetCommand(string command, out ConsoleCommand result)
Parameters
Returns