store client ips in bigquery table

This commit is contained in:
Evan
2024-12-14 10:03:05 -08:00
parent c93bca059f
commit 2fc81c7d17
12 changed files with 90 additions and 95 deletions
+3 -3
View File
@@ -4,7 +4,7 @@ import { v4 as uuidv4 } from 'uuid';
import { Client } from "./Client";
import { GamePhase, GameServer } from "./GameServer";
import { Difficulty, GameMap, GameType } from "../core/game/Game";
import { generateGameID } from "../core/Util";
import { generateID } from "../core/Util";
@@ -39,7 +39,7 @@ export class GameManager {
}
createPrivateGame(): string {
const id = generateGameID()
const id = generateID()
this.games.push(new GameServer(
id,
Date.now(),
@@ -79,7 +79,7 @@ export class GameManager {
if (now > this.lastNewLobby + this.config.gameCreationRate()) {
this.lastNewLobby = now
lobbies.push(new GameServer(
generateGameID(),
generateID(),
now,
true,
this.config,