Example #1
0
 public void ModuleManagerPostLoad()
 {
     MonoBehaviour.print("Reloading config databases (fuel types, model data, etc...)");
     FuelTypes.INSTANCE.loadConfigData();
     VolumeContainerLoader.loadConfigData();//needs to be loaded after fuel types
     SSTUModelData.loadConfigData();
     SSTUDatabase.loadConfigData();
 }
Example #2
0
 //called from the ModuleManagerPostLoad() callback for KSPShaderTools
 public void KSPShaderToolsPostLoad()
 {
     MonoBehaviour.print("Reloading config databases (fuel types, model data, etc...)");
     FuelTypes.INSTANCE.loadConfigData();
     VolumeContainerLoader.loadConfigData(); //needs to be loaded after fuel types
     SSTUDatabase.loadConfigData();          //loads heat-shield types
     SSTUModelData.loadConfigData();
 }
        public void ModuleManagerPostLoad()
        {
            MonoBehaviour.print("Creating Part Config cache.");
            partConfigNodes.Clear();
            ConfigNode[] partNodes = GameDatabase.Instance.GetConfigNodes("PART");
            String       name;

            foreach (ConfigNode node in partNodes)
            {
                name = node.GetStringValue("name");
                name = name.Replace('_', '.');
                if (partConfigNodes.ContainsKey(name))
                {
                    continue;
                }
                partConfigNodes.Add(name, node);
            }
            MonoBehaviour.print("Reloading config databases (fuel types, model data, etc...)");
            FuelTypes.INSTANCE.loadConfigData();
            VolumeContainerLoader.loadConfigData();//needs to be loaded after fuel types
            SSTUModelData.loadConfigData();
            SSTUDatabase.loadConfigData();
        }