Co-authored-by: Dennis Ploeger <develop@dieploegers.de> Co-authored-by: dploeger <dploeger@users.noreply.github.com>
1.0 KiB
1.0 KiB
ESCActionManager
Extends: Object
Description
Manages currently carried out actions
Property Descriptions
current_action
var current_action: String = ""
- Setter:
set_current_action
Current verb used
current_tool
var current_tool: ESCObject
Current tool (ESCItem/ESCInventoryItem) used
Method Descriptions
set_current_action
func set_current_action(action: String)
Set the current action
clear_current_action
func clear_current_action()
Clear the current action
clear_current_tool
func clear_current_tool()
Clear the current tool
activate
func activate(action: String, target: ESCObject, combine_with: ESCObject = null) -> var
Signals
- signal action_changed(): The current action was changed
- signal action_finished(): Emitted, when an action has been completed