本文整理汇总了C#中Persistence.GetChild方法的典型用法代码示例。如果您正苦于以下问题:C# Persistence.GetChild方法的具体用法?C# Persistence.GetChild怎么用?C# Persistence.GetChild使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Persistence
的用法示例。
在下文中一共展示了Persistence.GetChild方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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();
}
示例2: 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);
}
示例3: Import
public override void Import(Persistence.Lookup settings)
{
base.Import(settings);
mChild = settings.GetChild<TunableStore>("Child");
}