2026-05-05 17:43:12 -05:00
|
|
|
import { assertSecret } from "@blitzkit/core";
|
2026-05-18 16:45:36 -05:00
|
|
|
import type { GameInterface } from "@blitzkit/game";
|
2026-05-05 17:43:12 -05:00
|
|
|
import { clientUnmounted } from "./unmounted";
|
2026-05-05 16:48:16 -05:00
|
|
|
|
|
|
|
|
let _game: GameInterface | null = null;
|
|
|
|
|
|
|
|
|
|
if (!clientUnmounted) {
|
2026-05-18 16:45:36 -05:00
|
|
|
const { GameInterface } = await import("@blitzkit/game");
|
2026-05-24 12:42:08 -05:00
|
|
|
_game = new GameInterface(
|
|
|
|
|
assertSecret(import.meta.env.PUBLIC_WOTB_CLIENT),
|
|
|
|
|
assertSecret(import.meta.env.WOTB_USMAP),
|
|
|
|
|
"../../temp",
|
|
|
|
|
);
|
2026-05-05 16:48:16 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const game = _game;
|