public void OnSave(ConfigNode cn) { ConfigNode thisNode = new ConfigNode("FACILITY"); thisNode.SetValue("Name", Name, true); thisNode.SetValue("isPriority", IsPriority, true); thisNode.SetValue("RecentlyUpgraded", recentlyUpgraded, true); thisNode.SetValue("Closed", isClosed, true); thisNode.SetValue("LaunchesThisMonth", LaunchesThisMonth, true); if (Upgrading) { Upgrade.OnSave(thisNode); } cn.AddNode(thisNode); }