SierraCommands

Extends: PopochiuCommands < RefCounted

Description

Constants Descriptions

Commands

enum Commands{WALK = 0, LOOK = 1, INTERACT = 2, TALK = 3}

Defines the commands of the GUI.

Method Descriptions

fallback

func fallback() -> void

Called by [Popochiu] when a command doesn't have an associated [Callable]. By default this calls [method walk].

walk

func walk() -> void

Called when [code]E.current_command == Commands.WALK[/code] and [code]E.command_fallback()[/code] is triggered.[br] By default makes the character walk to the clicked [PopochiuClickable].

look

func look() -> void

Called when [code]E.current_command == Commands.LOOK[/code] and [code]E.command_fallback()[/code] is triggered.

interact

func interact() -> void

Called when [code]E.current_command == Commands.INTERACT[/code] and [code]E.command_fallback()[/code] is triggered.

talk

func talk() -> void

Called when [code]E.current_command == Commands.TALK[/code] and [code]E.command_fallback()[/code] is triggered.

get_script_name (static)

func get_script_name() -> String

Should return the name of this class, or the identifier you want to use in scripts to know the type of the current GUI commands.