protected void Application_Start()
        {
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            var nw = new Nightwatch();

            Application["Nightwatch"] = nw;
            if (GlobalConst.PlanetWarsMode == PlanetWarsModes.Running)
            {
                Application["PwMatchMaker"] = new PlanetWarsMatchMaker(nw.Tas);
            }
            new Thread(() => nw.Start()).Start();


            AreaRegistration.RegisterAllAreas();
            RegisterRoutes(RouteTable.Routes);
        }
        protected void Application_Start()
        {
            var nw = new Nightwatch(Server.MapPath("/"));

            Application["Nightwatch"] = nw;
#if DEPLOY
            if (GlobalConst.PlanetWarsMode == PlanetWarsModes.Running)
            {
                Application["PwMatchMaker"] = new PlanetWarsMatchMaker(nw.Tas);
            }
            Global.Nightwatch.Start();
#endif


            AreaRegistration.RegisterAllAreas();
            RegisterRoutes(RouteTable.Routes);
        }