Save() public method

public Save ( ConfigNode node ) : void
node System.ConfigNode
return void
Beispiel #1
0
 public override void OnSave(ConfigNode node)
 {
     base.OnSave(node);
     if (ullageSet != null)
     {
         ConfigNode ullageNode = new ConfigNode("Ullage");
         ullageSet.Save(ullageNode);
         node.AddNode(ullageNode);
     }
 }
        public override void OnSave(ConfigNode node)
        {
            base.OnSave(node);
            // manually save ignited if not editor
            if (!HighLogic.LoadedSceneIsEditor)
            {
                node.AddValue("ignited", ignited);
            }

            if (ullageSet != null)
            {
                ConfigNode ullageNode = new ConfigNode("Ullage");
                ullageSet.Save(ullageNode);
                node.AddNode(ullageNode);
            }
        }