public DebugGameServer()
        {
            debugServerIndex = "DebugServer" + Guid.NewGuid();
            ServerLogger.InitLogger("DebugServer", debugServerIndex);
            Logger.Start(debugServerIndex);
            
            childProcess = Global.Require<ChildProcess>("child_process");
            Global.Scope.Fiber= Global.Require<NodeModule>("fibers");
            Global.Process.On("exit", () => ServerLogger.LogError("exi", null));

            DebugGameManager debugGameManager = new DebugGameManager(debugServerIndex);
        }
Example #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);
        }