Show / Hide Table of Contents

Class ConsoleCommandsDatabase

Use RegisterCommand() to register your own commands. Registered commands persist between scenes but don't persist between multiple application executions.

Inheritance
Object
ConsoleCommandsDatabase
Namespace: Wenzil.Console
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
Type Description
IEnumerable<ConsoleCommand>

Methods

| Improve this Doc View Source

ExecuteCommand(String, String[])

Declaration
public static string ExecuteCommand(string command, params string[] args)
Parameters
Type Name Description
String command
String[] args
Returns
Type Description
String
| Improve this Doc View Source

GetCommand(String)

Declaration
public static ConsoleCommand GetCommand(string command)
Parameters
Type Name Description
String command
Returns
Type Description
ConsoleCommand
| Improve this Doc View Source

HasCommand(String)

Declaration
public static bool HasCommand(string command)
Parameters
Type Name Description
String command
Returns
Type Description
Boolean
| Improve this Doc View Source

RegisterCommand(String, String, String, ConsoleCommandCallback)

Declaration
public static void RegisterCommand(string command, string description, string usage, ConsoleCommandCallback callback)
Parameters
Type Name Description
String command
String description
String usage
ConsoleCommandCallback callback
| Improve this Doc View Source

RegisterCommand(String, ConsoleCommandCallback, String, String)

Declaration
public static void RegisterCommand(string command, ConsoleCommandCallback callback, string description = "", string usage = "")
Parameters
Type Name Description
String command
ConsoleCommandCallback callback
String description
String usage
| Improve this Doc View Source

TryGetCommand(String, out ConsoleCommand)

Declaration
public static bool TryGetCommand(string command, out ConsoleCommand result)
Parameters
Type Name Description
String command
ConsoleCommand result
Returns
Type Description
Boolean
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX