AcManager.Tools.Objects.WeatherObject.LoadData C# (CSharp) Method

LoadData() protected method

protected LoadData ( IniFile ini ) : void
ini IniFile
return void
        protected override void LoadData(IniFile ini) {
            Name = ini["LAUNCHER"].GetPossiblyEmpty("NAME");
            TemperatureCoefficient = ini["LAUNCHER"].GetDouble("TEMPERATURE_COEFF", 0d);

            WeatherType? type;
            try {
                 type = ini["__LAUNCHER_CM"].GetEnumNullable<WeatherType>("WEATHER_TYPE");
            } catch (Exception) {
                 type = null;
            }

            TemperatureDiapason = ini["__LAUNCHER_CM"].GetNonEmpty("TEMPERATURE_DIAPASON");
            TimeDiapason = ini["__LAUNCHER_CM"].GetNonEmpty("TIME_DIAPASON");

            Type = type ?? TryToDetectWeatherTypeById(Id);

            if (_loadedExtended) {
                LoadExtended(ini);
            }
        }