Files
blitzkit/packages/website-ue/src/game/game.ts
T

12 lines
382 B
TypeScript
Raw Normal View History

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";
let _game: GameInterface | null = null;
if (!clientUnmounted) {
2026-05-18 16:45:36 -05:00
const { GameInterface } = await import("@blitzkit/game");
2026-05-05 17:43:12 -05:00
_game = new GameInterface(assertSecret(import.meta.env.PUBLIC_WOTB_CLIENT));
}
export const game = _game;