EnterLobbyState.ts 432 B

123456789101112
  1. import { LaunchContext, LaunchState, LaunchStateId } from './LaunchState';
  2. export class EnterLobbyState implements LaunchState {
  3. readonly id = LaunchStateId.EnterLobby;
  4. async enter(context: LaunchContext): Promise<LaunchStateId> {
  5. const i18n = context.kernel.i18n;
  6. context.progress({ state: this.id, title: i18n.t('launch.finished'), progress: 1 });
  7. await context.kernel.scenes.goToLobby();
  8. return null;
  9. }
  10. }