public void Import(Persistence.Lookup settings) { mHolidaySettings.Clear(); foreach (HolidaySettings setting in settings.GetList <HolidaySettings>("Holidays")) { mHolidaySettings[setting.Season] = setting; } mWeatherSettings.Clear(); foreach (WeatherSettings setting in settings.GetList <WeatherSettings>("Weather")) { mWeatherSettings[setting.Season] = setting; } Tempest.ReapplySettings(); }
public void Import(Persistence.Lookup settings) { MasterController.Settings.SkillStamps.Clear(); MasterController.Settings.SkillStamps.AddRange(settings.GetList <SkillStamp>("")); MasterController.Settings.UpdateStamp(); }
public void Import(Persistence.Lookup settings) { Relativity.Settings.ClearMotiveFactors(); foreach (MotiveKeyValue key in settings.GetList <MotiveKeyValue>("Motives")) { Relativity.Settings.SetMotiveFactor(key.mKey, key.mValue); } }
public void Import(Persistence.Lookup settings) { Relativity.Settings.Intervals.Clear(); foreach (SpeedInterval interval in settings.GetList <SpeedInterval>("Intervals")) { Relativity.Settings.Add(interval); } }
public void Import(Persistence.Lookup settings) { mKey = settings.GetChild <SettingsKey>("Key"); mSettings.Clear(); foreach (ITUNSettings setting in settings.GetList <ITUNSettings>("Settings")) { mSettings[setting.mName] = setting; } mTunables = settings.GetList <TunableStore>("Tunables"); mTunableLookup = null; mActionData.Clear(); foreach (ActionDataSetting setting in settings.GetList <ActionDataSetting>("ActionData")) { mActionData[setting.mName] = setting; } Apply(); }
public void Import(Persistence.Lookup settings) { serviceSettings.Clear(); foreach (ServiceSettingKey setting in settings.GetList <ServiceSettingKey>("Services")) { serviceSettings[setting.type] = setting; } Register.InitDefaultServiceTunings(); ServiceCleanup.Task.Perform(); ServicePoolCleanup.Task.Perform(); }
public void Import(Persistence.Lookup settings) { mName = settings.GetString("Name"); List <PersistItem> list = settings.GetList <PersistItem>("Skill"); mSkills.Clear(); foreach (PersistItem value in list) { mSkills.Add(value.mSkill, value.mLevel); } }
public override void Import(Persistence.Lookup settings) { sSettings = settings.GetChild <PersistedSettings>("Settings"); SeasonSettings generalSettings = Settings.GetSettings(new GeneralKey()); // Backwards compatibility with Version 1 foreach (PersistedSettings.Settings setting in settings.GetList <PersistedSettings.Settings>("Settings")) { generalSettings.ApplyLegacySetting(setting); } Common.FunctionTask.Perform(ApplySettings); }
public void Import(Persistence.Lookup settings) { mName = settings.GetString("Name"); mStart = settings.GetInt("Start", 1); mEnd = settings.GetInt("End", -1); mEnabled = settings.GetBool("Enabled", false); Import(ref mMorningTemp, settings, "MorningTemp"); Import(ref mNoonTemp, settings, "NoonTemp"); Import(ref mEveningTemp, settings, "EveningTemp"); Import(ref mNightTemp, settings, "NightTemp"); mData = settings.GetList <WeatherData>("Types"); }
public override void Import(Persistence.Lookup settings) { base.Import(settings); Import(ref mTransitionTime, settings, "TransitionTime"); mMinIntensityDuration = settings.GetFloat("MinIntensityDuration", 0); mIntensityWeights = new List <int>(); mIntensityWeights.Add(settings.GetInt("LightWeight", 0)); mIntensityWeights.Add(settings.GetInt("MediumWeight", 0)); mIntensityWeights.Add(settings.GetInt("HeavyWeight", 0)); mIntensityChangeWeights = settings.GetList <int>("ChangeWeights", Convert); }
public void Import(Persistence.Lookup settings) { SeasonSettings.Clear(); foreach (SeasonSettings setting in settings.GetList <SeasonSettings>("Settings")) { List <SeasonSettings> list; if (!SeasonSettings.TryGetValue(setting.Key.Season, out list)) { list = new List <SeasonSettings>(); SeasonSettings.Add(setting.Key.Season, list); } list.Add(setting); } Apply(); }
public void ImportCastes(Persistence.Lookup settings) { List <CasteOptions> casteOptions = mCasteOptions; mCasteOptions = settings.GetList <CasteOptions>("Castes"); mCasteOptionsLookup = null; if ((mCasteOptions == null) || (mCasteOptions.Count == 0)) { mCasteOptions = casteOptions; } else { mNextCasteID = 0; ValidateCasteOptions(Castes); } }
public void Import(Persistence.Lookup settings) { MasterController.Settings.mFilters = settings.GetList <SavedFilter>(""); }
public void Import(Persistence.Lookup settings) { mOptions = settings.GetList <TOption>("Option"); }
public void Import(Persistence.Lookup settings) { mSeason = settings.GetEnum <Season>("Season", Season.Summer); mNoSchool = settings.GetBool("NoSchool", false); mDays = settings.GetList <Holiday>("Days"); }
public void Import(Persistence.Lookup settings) { mName = settings.GetString("Name"); mElements = settings.GetList <SimSelection.ICriteria>("Criteria"); }
public void Import(Persistence.Lookup settings) { mSeason = settings.GetEnum <Season>("Season", Season.Summer); mProfiles = settings.GetList <WeatherProfile>("Profiles"); }
public void Import(Persistence.Lookup settings) { Saver.Settings.mSimSaveHour = settings.GetList <float>("SaveHour", Convert); Saver.RestartTimers(); }