Esempio n. 1
0
        public static void reset()
        {
            //firstStart = true;
            PartTracker           = new Dictionary <string, int>();
            PartInventory         = new Dictionary <string, int>();
            flightSimulated       = false;
            simulationInitialized = false;
            vesselDict            = new Dictionary <string, string>();
            BodiesVisited         = new List <string> {
                Planetarium.fetch.Home.name
            };
            simulationBody     = KCT_Utilities.GetBodyByName(BodiesVisited[0]);
            simulateInOrbit    = false;
            firstStart         = false;
            vesselErrorAlerted = false;

            /*  VABUpgrades = new List<int>() {0};
            *  SPHUpgrades = new List<int>() {0};
            *  RDUpgrades = new List<int>() {0, 0};*/
            PurchasedUpgrades = new List <int>()
            {
                0, 0
            };
            // LaunchPadReconditioning = null;
            targetedItem = null;
            KCT_GUI.ResetFormulaRateHolders();

            InventorySaleUpgrades = 0;
            InventorySalesFigures = 0;

            ExperimentalParts.Clear();
            MiscellaneousTempUpgrades = 0;


            lastUT = 0;
            //ActiveKSC = new KCT_KSC("Stock");
            //KSCs = new List<KCT_KSC>() {ActiveKSC};


            /* VABList = new List<KCT_BuildListVessel>();
             * VABWarehouse = new List<KCT_BuildListVessel>();
             * SPHList = new List<KCT_BuildListVessel>();
             * SPHWarehouse = new List<KCT_BuildListVessel>();
             * TechList = new List<KCT_TechItem>();*/
        }
Esempio n. 2
0
        public static void reset()
        {
            //firstStart = true;
            PartTracker     = new Dictionary <string, int>();
            PartInventory   = new Dictionary <string, int>();
            flightSimulated = false;
            vesselDict      = new Dictionary <string, string>();
            simulationBody  = KCT_Utilities.GetBodyByName("Kerbin");
            simulateInOrbit = false;
            BodiesVisited   = new List <string> {
                "Kerbin"
            };
            TotalUpgradePoints = 0;

            /*  VABUpgrades = new List<int>() {0};
            *  SPHUpgrades = new List<int>() {0};
            *  RDUpgrades = new List<int>() {0, 0};*/
            PurchasedUpgrades = new List <int>()
            {
                0, 0
            };
            // LaunchPadReconditioning = null;
            targetedItem           = null;
            KCT_GUI.fundsCost      = -13;
            KCT_GUI.sciCost        = -13;
            KCT_GUI.nodeRate       = -13;
            KCT_GUI.upNodeRate     = -13;
            KCT_GUI.researchRate   = -13;
            KCT_GUI.upResearchRate = -13;
            //ActiveKSC = new KCT_KSC("Stock");
            //KSCs = new List<KCT_KSC>() {ActiveKSC};


            /* VABList = new List<KCT_BuildListVessel>();
             * VABWarehouse = new List<KCT_BuildListVessel>();
             * SPHList = new List<KCT_BuildListVessel>();
             * SPHWarehouse = new List<KCT_BuildListVessel>();
             * TechList = new List<KCT_TechItem>();*/
        }