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(); }
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); } }