コード例 #1
0
ファイル: SCANsat.cs プロジェクト: DMagic1/SCANsat_DM
 public override void OnSave(ConfigNode node)
 {
     node.RemoveNodes("ScienceData"); //** Prevent duplicates
     foreach (ScienceData SCANData in storedData)
     {
         ConfigNode storedDataNode = node.AddNode("ScienceData");
         SCANData.Save(storedDataNode);
     }
 }
コード例 #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);
     }
 }