moveTo return promise/obs to indicate done
See original GitHub issuei have often in my game the need to perform either an emote or changing the facing direction after a finished move. E.g I can order an NPC to start gathering resources at XY and once he arrives there he/she confirms the action.
i have a helper like this
private async waitForCurrentMovementStopped() {
return firstValueFrom(this.scene
.gridEngine
.movementStopped()
.pipe(
filter(m => m.charId === this.id),
take(1)
));
}
and wondered whether moveTo could return either a promise (preferably) or obs so that can be handled in one go?
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
What is the difference between "event loop queue" and "job ...
The ECMAscript 2015 (ES6) specification requires tasks to run Promise reaction callbacks to form their own job queue called "PromiseJobs".
Read more >websters1913.txt - paulgorman.org
Note : A 1 is also applied colloquially to other things to imply superiority; prime; ... It always something to be done, and...
Read more >A Process Study of Iowa's Post-Employment Pilot Program
The state of Iowa made an early commitment to job retention and advancement ... These results indicated that FIP had increased employment and...
Read more >wbstr10a.txt
If you received it on a physical medium, you must return it with your note, and such person may choose to alternatively give...
Read more >Webster's Unabridged Dictionary
Note : It is placed before nouns of the singular number denoting an individual object, ... It always something to be done, and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m sorry it seems my vscode project had some troubles. after a wipe of npm_modules and re-installing I can see the intellisense suggestions now properly and the returned obs.
I created an issue for that #241