Tac.GlobalSettings.Load C# (CSharp) Method

Load() public method

public Load ( ConfigNode node ) : void
node System.ConfigNode
return void
        public void Load(ConfigNode node)
        {
            //if (node.HasNode(configNodeName))
            //{
            //ConfigNode settingsNode = node.GetNode(configNodeName);
            //ConfigNode TACLSsettingsNode = new ConfigNode();
            //if (!node.TryGetNode(configNodeName, ref TACLSsettingsNode)) return;
            node.TryGetValue("MaxDeltaTime", ref MaxDeltaTime);
            node.TryGetValue("ElectricityMaxDeltaTime", ref ElectricityMaxDeltaTime);
            node.TryGetValue("FoodResource", ref Food);
            node.TryGetValue("WaterResource", ref Water);
            node.TryGetValue("OxygenResource", ref Oxygen);
            node.TryGetValue("CarbonDioxideResource", ref CO2);
            node.TryGetValue("WasteResource", ref Waste);
            node.TryGetValue("WasteWaterResource", ref WasteWater);
            node.TryGetValue("FoodConsumptionRate", ref FoodConsumptionRate);
            node.TryGetValue("WaterConsumptionRate", ref WaterConsumptionRate);
            node.TryGetValue("OxygenConsumptionRate", ref OxygenConsumptionRate);
            node.TryGetValue("ElectricityConsumptionRate", ref ElectricityConsumptionRate);
            node.TryGetValue("BaseElectricityConsumptionRate", ref BaseElectricityConsumptionRate);
            node.TryGetValue("EvaElectricityConsumptionRate", ref EvaElectricityConsumptionRate);
            node.TryGetValue("CO2ProductionRate", ref CO2ProductionRate);
            node.TryGetValue("WasteProductionRate", ref WasteProductionRate);
            node.TryGetValue("WasteWaterProductionRate", ref WasteWaterProductionRate);
            node.TryGetValue("EvaDefaultResourceAmount", ref EvaDefaultResourceAmount);
            node.TryGetValue("MaxTimeWithoutFood", ref MaxTimeWithoutFood);
            node.TryGetValue("MaxTimeWithoutWater", ref MaxTimeWithoutWater);
            node.TryGetValue("MaxTimeWithoutOxygen", ref MaxTimeWithoutOxygen);
            node.TryGetValue("MaxTimeWithoutElectricity", ref MaxTimeWithoutElectricity);
            //}
        }