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) { 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 override void Import(Persistence.Lookup settings) { base.Import(settings); mChild = settings.GetChild <TunableStore>("Child"); }