EnterLobbyState.ts 401 B

1234567891011
  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. context.progress({ state: this.id, title: '进入大厅', progress: 1 });
  6. await context.kernel.scenes.goToLobby();
  7. return LaunchStateId.Complete;
  8. }
  9. }