Apply suggestions from code review
Fixing missing return attribute in doc
This commit is contained in:
parent
dd03a2d1ff
commit
d8327d1b72
2 changed files with 1 additions and 2 deletions
|
@ -175,7 +175,7 @@ WA.player.state.toto //will retrieve the variable
|
|||
|
||||
### Move player to position
|
||||
```typescript
|
||||
WA.player.moveTo(x: number, y: number, speed?: number): Promise<{ x: number, y: number }>;
|
||||
WA.player.moveTo(x: number, y: number, speed?: number): Promise<{ x: number, y: number, cancelled: boolean }>;
|
||||
```
|
||||
Player will try to find shortest path to the destination point and proceed to move there.
|
||||
```typescript
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue