Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | /** * @module index * Server's Bootstrap */ import { loadDatabases } from '@engine/actions'; import { RunCommands } from '@engine/Commands/tasks'; import { makeStore, store } from '@engine/store'; import { GameServer } from '@server/server'; import * as path from 'path'; require('dotenv').config(); // tslint:disable-next-line: no-namespace declare namespace NodeJS { // tslint:disable-next-line: interface-name interface Global { /** * Store the project base dir path */ __basedir: string; } } declare var global: NodeJS.Global; global.__basedir = path.resolve(__dirname, '..'); makeStore(); RunCommands.makeQueues(); export const server = new GameServer(store); server.launch(); store.dispatch(loadDatabases()); RunCommands.startAutoSave(); |