Changing callback signature of registerAnswerer so that it can return a value and not necessarily a promise.
This commit is contained in:
parent
5b4a72ea1f
commit
280c59e6b5
3 changed files with 6 additions and 6 deletions
|
@ -81,7 +81,7 @@ WA.room.getCurrentRoom(): Promise<Room>
|
|||
```
|
||||
Return a promise that resolves to a `Room` object with the following attributes :
|
||||
* **id (string) :** ID of the current room
|
||||
* **map (ITiledMap) :** contains the JSON map file with the properties that were setted by the script if `setProperty` was called.
|
||||
* **map (ITiledMap) :** contains the JSON map file with the properties that were set by the script if `setProperty` was called.
|
||||
* **mapUrl (string) :** Url of the JSON map file
|
||||
* **startLayer (string | null) :** Name of the layer where the current user started, only if different from `start` layer
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue