Merge branch 'v27'

This commit is contained in:
evanpelle
2025-12-12 16:20:43 -08:00
22 changed files with 1025 additions and 709 deletions
+2 -3
View File
@@ -26,6 +26,7 @@ import { GameView, PlayerView } from "../core/game/GameView";
import { loadTerrainMap, TerrainMapData } from "../core/game/TerrainMapLoader";
import { UserSettings } from "../core/game/UserSettings";
import { WorkerClient } from "../core/worker/WorkerClient";
import { getPersistentID } from "./Auth";
import {
AutoUpgradeEvent,
DoBoatAttackEvent,
@@ -36,7 +37,6 @@ import {
TickMetricsEvent,
} from "./InputHandler";
import { endGame, startGame, startTime } from "./LocalPersistantStats";
import { getPersistentID } from "./Main";
import { terrainMapFileLoader } from "./TerrainMapFileLoader";
import {
SendAttackIntentEvent,
@@ -57,7 +57,6 @@ export interface LobbyConfig {
playerName: string;
clientID: ClientID;
gameID: GameID;
token: string;
turnstileToken: string | null;
// GameStartInfo only exists when playing a singleplayer game.
gameStartInfo?: GameStartInfo;
@@ -238,7 +237,7 @@ export class ClientGameRunner {
this.lastMessageTime = Date.now();
}
private saveGame(update: WinUpdate) {
private async saveGame(update: WinUpdate) {
if (this.myPlayer === null) {
return;
}