Documentation on type Position

This commit is contained in:
Benedicte Quimbert 2021-12-08 11:48:16 +01:00
parent 08824b70aa
commit 6871335e9b

View file

@ -64,6 +64,11 @@ WA.player.getPosition(): Promise<Position>
```
The player's current position is available using the `WA.player.getPosition()` function.
`Position` has the following attributes :
* **x (number) :** The coordinate x of the current player's position.
* **y (number) :** The coordinate y of the current player's position.
{.alert.alert-info}
You need to wait for the end of the initialization before calling `WA.player.getPosition()`