public GameServer()
        {
            gameServerIndex = "GameServer" + Guid.NewGuid();
            ServerLogger.InitLogger("GameServer", gameServerIndex);
            Logger.Start(gameServerIndex);

            childProcess = Global.Require<ChildProcess>("child_process");
            Global.Scope.Fiber = Global.Require<NodeModule>("fibers");
            Global.Process.On("exit", () => ServerLogger.LogError("exi", null));

            GameManager gameManager = new GameManager(gameServerIndex);
        }
Beispiel #2
0
        public GameServer()
        {
            gameServerIndex = "GameServer" + Guid.NewGuid();
            Logger.Start(gameServerIndex);

            new ArrayUtils();
            childProcess = Global.Require<ChildProcess>("child_process");
            Global.Scope.Fiber= Global.Require<NodeModule>("fibers");
            Global.Process.On("exit", () => Logger.Log("exi", LogLevel.Information));

            GameManager gameManager = new GameManager(gameServerIndex);
        }