workadventure/front/src/Phaser/Game
David Négrier 5b4a72ea1f Add new "query/answer" utility functions for the scripting API
So far, the scripting API was using events to communicate between WA and the iFrame.
But often, the scripting API might actually want to "ask" WA a question and wait for an answer.

We dealt with this by using 2 unrelated events (in a mostly painful way).

This commit adds a "queryWorkadventure" utility function in the iFrame API that allows us
to send a query, and to wait for an answer. The query and answer events have a unique ID to be
sure the answer matches the correct query.

On the WA side, a new `IframeListener.registerAnswerer` method can be used to register a possible answer.
2021-07-02 16:49:22 +02:00
..
AddPlayerInterface.ts FIX: improved the visit card, cleanup the code 2021-06-08 16:39:22 +02:00
DepthIndexes.ts Added a radial menu to run emotes 2021-05-19 15:17:50 +02:00
DirtyScene.ts Merge remote-tracking branch 'remotes/upstream/develop' into tiles-start-positions 2021-06-25 18:14:40 +02:00
EmoteManager.ts now use custom emotes with tweens instead of transistions 2021-05-25 16:37:24 +02:00
Game.ts correction of resize select character and companion by David 2021-05-31 10:20:48 +02:00
GameManager.ts Merge remote-tracking branch 'remotes/upstream/develop' into tiles-start-positions 2021-06-25 18:14:40 +02:00
GameMap.ts Merge branch 'develop' of github.com:thecodingmachine/workadventure into jonnytest1-tiles-start-positions 2021-07-02 14:35:28 +02:00
GameScene.ts Add new "query/answer" utility functions for the scripting API 2021-07-02 16:49:22 +02:00
PlayerMovement.ts Merge remote-tracking branch 'remotes/upstream/develop' into tiles-start-positions 2021-06-25 18:14:40 +02:00
PlayersPositionInterpolator.ts Merge remote-tracking branch 'remotes/upstream/develop' into tiles-start-positions 2021-06-25 18:14:40 +02:00
SoundManager.ts Moving audio message to Svelte 2021-06-02 16:46:28 +02:00
StartPositionCalculator.ts fixed merge conflict 2021-06-25 18:20:16 +02:00