@tool @icon("res://addons/escoria-core/design/esc_location.svg") ## A simple node extending Position2D with a global ID so that it can be ## referenced in ESC Scripts. Movement-based commands like `walk_to_pos` will ## automatically use an `ESCLocation` that is a child of the destination node.[br] ## Commands like `turn_to`--which are not movement-based--will ignore child ## `ESCLocation`s and refer to the parent node. extends ESCLocation class_name ESCInteractionLocation ## Whether this object's class is the same as given string class name.[br] ## [br] ## #### Parameters[br] ## [br] ## | Name | Type | Description | Required? |[br] ## |:-----|:-----|:------------|:----------|[br] ## |p_classname|`String`|String class to compare against|yes|[br] ## [br] ## #### Returns[br] ## [br] ## Returns a `bool` value. (`bool`) func is_class(p_classname: String) -> bool: return p_classname == "ESCInteractionLocation"