diff --git a/src/client/ClientGameRunner.ts b/src/client/ClientGameRunner.ts index 13e204b62..dce0b402e 100644 --- a/src/client/ClientGameRunner.ts +++ b/src/client/ClientGameRunner.ts @@ -1,5 +1,5 @@ import { Executor } from "../core/execution/ExecutionManager"; -import { Cell, MutableGame, PlayerID, GameMap, Difficulty, GameType } from "../core/game/Game"; +import { Cell, MutableGame, PlayerID, GameMapType, Difficulty, GameType } from "../core/game/Game"; import { createGame } from "../core/game/GameImpl"; import { EventBus } from "../core/EventBus"; import { createRenderer, GameRenderer } from "./graphics/GameRenderer"; @@ -23,7 +23,7 @@ export interface LobbyConfig { persistentID: string, gameType: GameType gameID: GameID, - map: GameMap | null + map: GameMapType | null difficulty: Difficulty | null } diff --git a/src/client/HostLobbyModal.ts b/src/client/HostLobbyModal.ts index 26177edb9..c5fd65104 100644 --- a/src/client/HostLobbyModal.ts +++ b/src/client/HostLobbyModal.ts @@ -1,13 +1,13 @@ import { LitElement, html, css } from 'lit'; import { customElement, property, state } from 'lit/decorators.js'; -import { Difficulty, GameMap, GameType } from '../core/game/Game'; +import { Difficulty, GameMapType, GameType } from '../core/game/Game'; import { Lobby } from '../core/Schemas'; import { consolex } from '../core/Consolex'; @customElement('host-lobby-modal') export class HostLobbyModal extends LitElement { @state() private isModalOpen = false; - @state() private selectedMap: GameMap = GameMap.World; + @state() private selectedMap: GameMapType = GameMapType.World; @state() private selectedDiffculty: Difficulty = Difficulty.Medium; @state() private lobbyId = ''; @state() private copySuccess = false; @@ -116,7 +116,7 @@ export class HostLobbyModal extends LitElement {