Example #1
0
        public static void loadDatafromDirectory(string dir)
        {
            StaticDataManager.LoadFromDirectory(dir, Program.staticData);
            LoadedDataSets = Program.staticData.LoadedDataSets.Count;

            foreach (var installationKVP in Program.staticData.Installations)
            {
                InstallationData.Add(installationKVP.Key, new DataHolder(installationKVP.Value));
            }
            foreach (var componentKVP in Program.staticData.Components)
            {
                ComponentData.Add(componentKVP.Key, new DataHolder(componentKVP.Value));
            }
            foreach (var mineralSD in Program.staticData.Minerals)
            {
                MineralData.Add(mineralSD.ID, new DataHolder(mineralSD));
            }
            foreach (var techKVP in Program.staticData.Techs)
            {
                TechData.Add(techKVP.Key, new DataHolder(techKVP.Value));
            }
            //foreach (var refinedData in Program.staticData.RefinedMats)
            //{
            //    RefinedObjData.Add(refinedData.Key, new DataHolder(refinedData.Value));
            //}
            SysGen.Add(new Guid(), new DataHolder(Program.staticData.SystemGenSettings));
        }