Esempio n. 1
0
        /// <summary>
        /// called at the OnSave()
        /// </summary>
        /// <param name="node">The name of the config node</param>
        public override void OnSave(ConfigNode node)
        {
            // save the state, that we got the initialisation done
            node.SetValue("initialized", initialized, true);

            KerbalKonstructs.instance.SaveKKConfig(node);

            //if (CareerUtils.isCareerGame)
            //{
            Log.Normal("KKScenario saving career state");
            CareerState.Save(node);
            //}

            CareerObjects.SaveBuildings(node);
        }
Esempio n. 2
0
        /// <summary>
        /// called at the OnSave()
        /// </summary>
        /// <param name="node">The name of the config node</param>
        public override void OnSave(ConfigNode node)
        {
            KerbalKonstructs.gameTime = HighLogic.CurrentGame.UniversalTime;
            saveTime = KerbalKonstructs.gameTime;

            // save the state, that we got the initialisation done
            node.SetValue("initialized", initialized, true);

            node.SetValue("savetime", saveTime, true);


            KerbalKonstructs.instance.SaveKKConfig(node);

            //if (CareerUtils.isCareerGame)
            //{
            Log.Normal("KKScenario saving career state");
            CareerState.Save(node);
            //}

            CareerObjects.SaveBuildings(node);
        }