Moved and split escoria._ev_left_click_on_item() function into ESCController (#371)
* Moved and split escoria._ev_left_click_on_item() function into ESCController. Added a boolean in ESCWalkContext to hold whether interact should happen after destination is reached. Co-authored-by: StraToN <StraToN@users.noreply.github.com>
This commit is contained in:
@@ -33,13 +33,21 @@ The target position
|
||||
var fast: bool
|
||||
```
|
||||
|
||||
Wether to move fast
|
||||
Whether to move fast
|
||||
|
||||
### dont\_interact\_on\_arrival
|
||||
|
||||
```gdscript
|
||||
var dont_interact_on_arrival: bool
|
||||
```
|
||||
|
||||
Whether an interaction should NOT happen after walk reaches destination
|
||||
|
||||
## Method Descriptions
|
||||
|
||||
### \_init
|
||||
|
||||
```gdscript
|
||||
func _init(p_target_object: ESCObject, p_target_position: Vector2, p_fast: bool)
|
||||
func _init(p_target_object: ESCObject, p_target_position: Vector2, p_fast: bool, p_dont_interact_on_arrival: bool)
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user