/// <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(); }
public void Start() { Log.Normal("Carrer Module Start Called"); if (!initialized) { Log.Normal("Resetting OpenCloseStates for new Games"); CareerState.ResetFacilitiesOpenState(); RemoteNet.LoadGroundStations(); } initialized = true; }