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

13 lines
332 B
TypeScript
Raw Normal View History

2026-02-02 22:00:46 -06:00
import { GameInterface } from "@blitzkit/game";
export const clientUnmounted = !("WOTB_CLIENT" in import.meta.env);
let _game: GameInterface | null = null;
if (!clientUnmounted) {
_game = new GameInterface(import.meta.env.WOTB_CLIENT);
} else {
console.warn("Running in client denied mode...");
}
export const game = _game;