Exemplo n.º 1
0
 public override void OnSave(ConfigNode node)
 {
     node.RemoveNodes("ScienceData"); //** Prevent duplicates
     foreach (ScienceData SCANData in storedData)
     {
         ConfigNode storedDataNode = node.AddNode("ScienceData");
         SCANData.Save(storedDataNode);
     }
 }
Exemplo n.º 2
0
 public override void OnSave(ConfigNode node)
 {
     node.RemoveNodes("ScienceData");             //** Prevent duplicates
     foreach (ScienceData SCANData in storedData)
     {
         ConfigNode storedDataNode = node.AddNode("ScienceData");
         SCANData.Save(storedDataNode);
     }
     if (RPMList.Count > 0)
     {
         ConfigNode RPMPersistence = new ConfigNode("SCANsatRPM");
         foreach (RPMPersistence RPMMFD in RPMList)
         {
             ConfigNode RPMProp = new ConfigNode("Prop");
             RPMProp.AddValue("Prop ID", RPMMFD.RPMID);
             RPMProp.AddValue("Mode", RPMMFD.RPMMode);
             RPMProp.AddValue("Color", RPMMFD.RPMColor);
             RPMProp.AddValue("Zoom", RPMMFD.RPMZoom);
             RPMProp.AddValue("Lines", RPMMFD.RPMLines);
             RPMPersistence.AddNode(RPMProp);
         }
         node.AddNode(RPMPersistence);
     }
 }