Пример #1
0
 void Application_Start(object sender, EventArgs e)
 {
     // Code that runs on application startup
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
     MapConfig.Init();
 }
 protected void Application_Start()
 {
     AreaRegistration.RegisterAllAreas();
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
     MapConfig.Init();
 }
Пример #3
0
 /// <summary>
 /// Attaches particular callback listener.
 /// </summary>
 public static bool Attach(IGlobalListener callback)
 {
     if (callback != null && !_list.Contains(callback))
     {
         MapConfig.Init();
         _list.Add(callback);
         return(true);
     }
     return(false);
 }
Пример #4
0
 public static void Init()
 {
     ItemConfig.Init();
     TestConfig.Init();
     WindowConfig.Init();
     EffectConfig.Init();
     EquipConfig.Init();
     IconConfig.Init();
     LanguageConfig.Init();
     WorldBossConfig.Init();
     NpcConfig.Init();
     MapConfig.Init();
     DungeonConfig.Init();
     DamageNumConfig.Init();
     SkillConfig.Init();
     MobAssetConfig.Init();
     //初始化结束
 }