コード例 #1
0
ファイル: GameManager.cs プロジェクト: remixod/sharpwow
 /// <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
ファイル: GameManager.cs プロジェクト: corefan/sharpwow
        /// <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;
        }