Exemple #1
0
        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();
        }
Exemple #2
0
            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);
            }
Exemple #3
0
        public override void Import(Persistence.Lookup settings)
        {
            base.Import(settings);

            mChild = settings.GetChild<TunableStore>("Child");
        }