Esempio n. 1
0
        public static void Initialize()
        {
            Map.Load(@"DBFilesClient\Map.dbc");
            LoadingScreen.Load(@"DBFilesClient\LoadingScreens.dbc");
            Light.Load(@"DBFilesClient\Light.dbc");
            try
            {
                CreatureDisplayInfo.Load(@"DBFilesClient\CreatureDisplayInfo.dbc");
            }
            catch (Exception)
            {
                if (FileManager.Instance.Version < FileDataVersion.Warlords)
                {
                    throw;
                }

                CreatureDisplayInfo = new DB2File();
                CreatureDisplayInfo.Load(@"DBFilesClient\CreatureDisplayInfo.db2");
            }

            CreatureDisplayInfoExtra.Load(@"DBFilesClient\CreatureDisplayInfoExtra.dbc");
            CreatureModelData.Load(@"DBFilesClient\CreatureModelData.dbc");

            if (FileManager.Instance.Version <= FileDataVersion.Mists)
            {
                InitLightsMop();
            }

            if (FileManager.Instance.Version == FileDataVersion.Lichking)
            {
                LightIntBand.Load(@"DBFilesClient\LightIntBand.dbc");
                LightFloatBand.Load(@"DBFilesClient\LightFloatBand.dbc");
            }

            if (FileManager.Instance.Version <= FileDataVersion.Warlords)
            {
                FileData.Load(@"DBFilesClient\FileData.dbc");
            }

            GroundEffectDoodad.Load(@"DBFilesClient\GroundEffectDoodad.dbc");
            GroundEffectTexture.Load(@"DBFilesClient\GroundEffectTexture.dbc");
            AreaTable.Load(@"DBFilesClient\AreaTable.dbc");

            MapFormatGuess.Initialize();
            SkyManager.Instance.Initialize();
        }
Esempio n. 2
0
        public static void Load(string build)
        {
            ListFile = new ListFile();
            ComponentModelFileData     = new ComponentModelFileData(build);
            ComponentTextureFileData   = new ComponentTextureFileData(build);
            CreatureDisplayInfoExtra   = new CreatureDisplayInfoExtra(build);
            CreatureModelData          = new CreatureModelData(build);
            ItemAppearance             = new ItemAppearance(build);
            ItemDisplayInfo            = new ItemDisplayInfo(build);
            ItemDisplayInfoMaterialRes = new ItemDisplayInfoMaterialRes(build);
            LightSkybox             = new LightSkybox(build);
            ModelFileData           = new ModelFileData(build);
            SpellVisualEffectName   = new SpellVisualEffectName(build);
            SpellVisualKitAreaModel = new SpellVisualKitAreaModel(build);
            TextureFileData         = new TextureFileData(build);

            // high priority lookups
            Task.WaitAll(
                ListFile.Load(),
                ModelFileData.Load(),
                TextureFileData.Load()
                );

            Task.WaitAll(
                ComponentModelFileData.Load(),
                ComponentTextureFileData.Load(),
                CreatureDisplayInfoExtra.Load(),
                CreatureModelData.Load(),
                ItemAppearance.Load(),
                ItemDisplayInfo.Load(),
                ItemDisplayInfoMaterialRes.Load(),
                LightSkybox.Load(),
                SpellVisualEffectName.Load(),
                SpellVisualKitAreaModel.Load()
                );

            Console.WriteLine("Loaded DBs");
        }