Пример #1
0
 /// <summary>
 /// Called by the main windows when its initialization is done. After here all the additional stuff is loaded
 /// which may use graphical interaction with the user. 
 /// </summary>
 public static async void OnFormLoaded()
 {
     IsGlobalDataLoaded = false;
     await Stormlib.MPQArchiveLoader.Instance.Init();
     DBC.DBCStores.LoadFiles();
     SkyManager = new World.SkyManager();
     mForm.OnGameInitialized(); 
     TerrainLogic = new Logic.TerrainLogic();
     WorldManager = new Game.WorldManager();
     M2ModelCache = new Models.MDX.M2InfoCache();
     M2ModelManager = new Models.MDX.M2Manager();
     SelectionManager = new Models.SelectionManager();
     if (GlobalDataLoaded != null)
         GlobalDataLoaded();
     IsGlobalDataLoaded = true;
 }
Пример #2
0
        /// <summary>
        /// Called by the main windows when its initialization is done. After here all the additional stuff is loaded
        /// which may use graphical interaction with the user.
        /// </summary>
        public static async void OnFormLoaded()
        {
            IsGlobalDataLoaded = false;
            await Stormlib.MPQArchiveLoader.Instance.Init();

            DBC.DBCStores.LoadFiles();
            SkyManager = new World.SkyManager();
            mForm.OnGameInitialized();
            TerrainLogic     = new Logic.TerrainLogic();
            WorldManager     = new Game.WorldManager();
            M2ModelCache     = new Models.MDX.M2InfoCache();
            M2ModelManager   = new Models.MDX.M2Manager();
            SelectionManager = new Models.SelectionManager();
            if (GlobalDataLoaded != null)
            {
                GlobalDataLoaded();
            }
            IsGlobalDataLoaded = true;
        }