bugfixes and cleanup
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
import { PasswordPrompt } from "./passwordPrompt.js";
|
||||
import { Player } from "../../models/player.js";
|
||||
import { Scene } from "../scene.js";
|
||||
import { UsernamePrompt } from "./usernamePrompt.js";
|
||||
import { PlayerCreationScene } from "../playerCreation/playerCreationSene.js";
|
||||
import { GameScene } from "../gameLoop/gameScene.js";
|
||||
|
||||
/** @typedef {import("../../models/player.js").Player} Player */
|
||||
|
||||
/** @property {Session} session */
|
||||
export class AuthenticationScene extends Scene {
|
||||
@@ -31,7 +33,7 @@ export class AuthenticationScene extends Scene {
|
||||
|
||||
this.session.sendText(["= Success!", "((but I don't know what to do now...))"]);
|
||||
|
||||
this.session.setScene("new JustLoggedInScene");
|
||||
this.session.setScene(new GameScene());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import { Prompt } from "../prompt.js";
|
||||
import * as security from "../../utils/security.js";
|
||||
import { Config } from "../../config.js";
|
||||
import { AuthenticationScene } from "./authenticationScene.js";
|
||||
|
||||
/** @typedef {import("./authentication.js").AuthenticationScene} AuthenticationScene */
|
||||
|
||||
export class PasswordPrompt extends Prompt {
|
||||
//
|
||||
|
||||
@@ -1,15 +1,10 @@
|
||||
import { Player } from "../../models/player.js";
|
||||
import { Prompt } from "../prompt.js";
|
||||
import * as security from "../../utils/security.js";
|
||||
import { gGame } from "../../models/globals.js";
|
||||
import { Config } from "../../config.js";
|
||||
import { AuthenticationScene } from "./authenticationScene.js";
|
||||
import * as security from "../../utils/security.js";
|
||||
|
||||
/** @typedef {import("./authenticationScene.js").AuthenticationScene} AuthenticationScene */
|
||||
/** @typedef {import("../../models/player.js").Player} Player */
|
||||
|
||||
/**
|
||||
* @class
|
||||
*
|
||||
* @property {AuthenticationScene} scene
|
||||
*/
|
||||
export class UsernamePrompt extends Prompt {
|
||||
//
|
||||
promptText = [
|
||||
|
||||
Reference in New Issue
Block a user