forked from mirrors/0ad
46b27f22ca
Since the completion is checked using the promise the `onTick` function can be removed. This replaces the `AutoStart` `AutoStartClient` and `AutoStartHost` by async functions. The functions can now return something to the engine. That is used to inform the engine which page to open. That was previously done in JavaScript. Which is ugly because it doesn't know whether it's in visual-mode.