Module command.command_manager
CommandManager module.
Available globally as SB.commandManager.
Class CommandManager
CommandManager:execute (Instance[, widget=false]) | Execute a command If the command is to be executed in a different Lua state than where this method is invoked from, it will be sent as a message to the proper state using the message mechanism. |
CommandManager.CommandManagerListener | Listener definition |
Class CommandManager
CommandManager class- CommandManager:execute (Instance[, widget=false])
-
Execute a command
If the command is to be executed in a different Lua state than where this method is invoked from, it will be sent as a message to the proper state using the message mechanism.
Parameters:
- Instance command.Command of a class that implements the Command interface.
- widget boolean Specifies whether the command should be executed in LuaUI(true) or LuaRules(false). (default false)
Usage:
SB.commandManager:execute(PrintMessageCommand("hello"))
- CommandManager.CommandManagerListener
- Listener definition