本文整理汇总了C#中Persistence.GetList方法的典型用法代码示例。如果您正苦于以下问题:C# Persistence.GetList方法的具体用法?C# Persistence.GetList怎么用?C# Persistence.GetList使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Persistence
的用法示例。
在下文中一共展示了Persistence.GetList方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Import
public void Import(Persistence.Lookup settings)
{
MasterController.Settings.SkillStamps.Clear();
MasterController.Settings.SkillStamps.AddRange(settings.GetList<SkillStamp>(""));
MasterController.Settings.UpdateStamp();
}
示例2: Import
public void Import(Persistence.Lookup settings)
{
mSeason = settings.GetEnum<Season>("Season", Season.Summer);
mProfiles = settings.GetList<WeatherProfile>("Profiles");
}
示例3: Import
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);
}
示例4: Import
public void Import(Persistence.Lookup settings)
{
mSeason = settings.GetEnum<Season>("Season", Season.Summer);
mNoSchool = settings.GetBool("NoSchool", false);
mDays = settings.GetList<Holiday>("Days");
}
示例5: Import
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);
}
}
示例6: Import
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");
}
示例7: Import
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();
}
示例8: Import
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();
}
示例9: Import
public void Import(Persistence.Lookup settings)
{
mName = settings.GetString("Name");
mElements = settings.GetList<SimSelection.ICriteria>("Criteria");
}
示例10: Import
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);
}
示例11: Import
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();
}
示例12: Import
public void Import(Persistence.Lookup settings)
{
MasterController.Settings.mFilters = settings.GetList<SavedFilter>("");
}
示例13: Import
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();
}