예제 #1
0
파일: Global.asax.cs 프로젝트: sizzles/MIM
 protected void Application_Start()
 {
     AreaRegistration.RegisterAllAreas();
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
     UpdateWorld.Init();
     UpdateWorld.CleanRoom();
     UpdateWorld.UpdateMob();
     PlayerName.GenerateHumanNames();
 }
예제 #2
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
            UpdateWorld.Init();
            UpdateWorld.CleanRoom();
            UpdateWorld.UpdateMob();
            PlayerName.GenerateHumanNames();

            foreach (var area in Areas.ListOfRooms())
            {
                var room = new Tuple <string, string, int>(area.region, area.area, area.areaId);

                MIMHub._AreaCache.TryAdd(room, area);
            }
        }