ESCCommandRegistry
Extends: RefCounted
Description
A registry of ASHES command objects.
Members
registry
var registry: Dictionary
The registry of registered commands.
Methods
load_command
func load_command(command_name: String) -> ESCBaseCommand
Load a command by its name.
Parameters
Name |
Type |
Description |
Required? |
|---|---|---|---|
command_name |
|
Name of command to load. |
yes |
Returns
Returns a ESCBaseCommand value. (ESCBaseCommand)
is_command_or_control_pressed
func is_command_or_control_pressed(command_name: String) -> ESCBaseCommand
Retrieves a command from the command registry.
Parameters
Name |
Type |
Description |
Required? |
|---|---|---|---|
command_name |
|
The name of the command. |
yes |
Returns
Returns a ESCBaseCommand value. (ESCBaseCommand)