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:
Julian Murgia
2021-08-24 08:19:55 +02:00
committed by GitHub
parent fc3ea147a7
commit b230966fc6
11 changed files with 396 additions and 225 deletions

View File

@@ -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)
```