Exemplo n.º 1
0
        /// <summary>
        /// called at the OnLoad()
        /// </summary>
        /// <param name="node">The name of the config node</param>
        public override void OnLoad(ConfigNode node)
        {
            // resetting old state in caase it is needed
            CareerState.ResetFacilitiesOpenState();

            if (node.HasValue("initialized"))
            {
                initialized = bool.Parse(node.GetValue("initialized"));
            }

            if (!initialized)
            {
                return;
            }

            KerbalKonstructs.instance.LoadKKConfig(node);

            if (CareerUtils.isCareerGame)
            {
                Log.Normal("KKScenario loading facility states");
                CareerState.Load(node);
            }

            RemoteNet.LoadGroundStations();
        }
Exemplo n.º 2
0
        public void Start()
        {
            Log.Normal("Carrer Module Start Called");

            if (!initialized)
            {
                Log.Normal("Resetting OpenCloseStates for new Games");
                CareerState.ResetFacilitiesOpenState();
                RemoteNet.LoadGroundStations();
            }

            initialized = true;
        }