From 7696de2284b68433498fea41cb221e386315e42c Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Tue, 29 Sep 2020 22:57:09 -0600 Subject: [PATCH] Add data for storing the game objects and JSON data on exit --- src/main.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.ts b/src/main.ts index 242b7f0..27fe791 100644 --- a/src/main.ts +++ b/src/main.ts @@ -15,6 +15,9 @@ import { ExecutiveConfirmation } from "./events/special/ExecutiveConfirmation"; import { InvestigateAffiliation } from "./events/special/InvestigateLoyalty/InvestigateAffiliation"; +export var active_games: {[key: string]: Game} = {}; + +const db_dir = `data`; const io = sio.listen(3000); io.on(`connection`, (socket: sio.Socket) => {