Пример #1
0
        public void LoadMaster(string executablPath)
        {
            var master = Heroes3Master.LoadInfo(executablPath);

            selectedLodFile = master.GetByName("h3bitmap.lod");

            SpecialityBuilder.LoadFromMaster(master);
            heroMainDataControl.LoadCastles();
            heroMainDataControl.LoadHeroes();
            heroClassDataControl.LoadHeroClasses();
            creatureDataControl.LoadCastles();
            spellDataControl.LoadSpells();

            var lodFileNames = master.ResourceFiles.Select(s => s.Name).ToArray();

            cbLodFiles.Items.AddRange(lodFileNames);
            cbLodFiles.SelectedIndex = Array.IndexOf <string>(lodFileNames, selectedLodFile.Name);

            tabsMain.TabPages.Add(tabHeroes);
            tabsMain.TabPages.Add(tabHeroClass);
            tabsMain.TabPages.Add(tabCreatures);
            tabsMain.TabPages.Add(tabSpells);
            tabsMain.TabPages.Add(tabResources);
        }