Example #1
0
        internal static void SaveLaunchsites(ConfigNode launchSiteNode)
        {
            string name = null;

            foreach (LaunchSite site in LaunchSiteManager.AllLaunchSites)
            {
                name = CareerUtils.LSKeyFromName(site.LaunchSiteName);
                ConfigNode lsNode = launchSiteNode.AddNode(name);
                site.SaveCareerConfig(lsNode);
            }
        }
Example #2
0
 /// <summary>
 /// Loads the state of the LauchSites
 /// </summary>
 internal static void LoadLaunchSites(ConfigNode launchSiteNodes)
 {
     foreach (LaunchSite site in LaunchSiteManager.AllLaunchSites)
     {
         ConfigNode lsNode;
         if (launchSiteNodes.HasNode(CareerUtils.LSKeyFromName(site.LaunchSiteName)))
         {
             lsNode = launchSiteNodes.GetNode(CareerUtils.LSKeyFromName(site.LaunchSiteName));
             site.LoadCareerConfig(lsNode);
         }
     }
 }
Example #3
0
        internal static void SaveLaunchsites(ConfigNode launchSiteNode)
        {
            string name = null;

            foreach (KKLaunchSite site in LaunchSiteManager.allLaunchSites)
            {
                //Log.Normal("Saving LS: " + site.LaunchSiteName + " " + site.isOpen);
                name = CareerUtils.LSKeyFromName(site.LaunchSiteName);
                ConfigNode lsNode = launchSiteNode.AddNode(name);
                LaunchSiteParser.SaveCareerConfig(site, lsNode);
            }
        }
Example #4
0
 /// <summary>
 /// Loads the state of the LauchSites
 /// </summary>
 internal static void LoadLaunchSitesLegacy(ConfigNode launchSiteNodes)
 {
     foreach (KKLaunchSite site in LaunchSiteManager.allLaunchSites)
     {
         //Log.Normal("Loading LS: " + site.LaunchSiteName + " " + site.isOpen);
         ConfigNode lsNode;
         if (launchSiteNodes.HasNode(CareerUtils.LSKeyFromName(site.LaunchSiteName)))
         {
             lsNode = launchSiteNodes.GetNode(CareerUtils.LSKeyFromName(site.LaunchSiteName));
             LaunchSiteParser.LoadCareerConfig(site, lsNode);
         }
         //Log.Normal("Loading LS: " + site.LaunchSiteName + " " + site.isOpen);
     }
 }