本文整理汇总了C#中Persistence.GetString方法的典型用法代码示例。如果您正苦于以下问题:C# Persistence.GetString方法的具体用法?C# Persistence.GetString怎么用?C# Persistence.GetString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Persistence
的用法示例。
在下文中一共展示了Persistence.GetString方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Import
public override void Import(Persistence.Lookup settings)
{
base.Import(settings);
FieldInfo field = GetFieldInfo();
if (field != null)
{
ITunableConvertOption converter = TunableTypeOption.GetFieldOption(GetParsingType(field));
if (converter != null)
{
mValue = converter.Clone(GetTunableFieldInfo ()).Convert(settings.GetString("Value"), false);
}
}
}
示例2: 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");
}
示例3: 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);
}
}
示例4: Import
public virtual void Import(Persistence.Lookup settings)
{
mParentType = settings.GetType("ParentType");
mFieldName = settings.GetString("FieldName");
}
示例5: Import
public void Import(Persistence.Lookup settings)
{
mName = settings.GetString("Name");
mElements = settings.GetList<SimSelection.ICriteria>("Criteria");
}
示例6: Import
public void Import(Persistence.Lookup settings)
{
mName = settings.GetString("Name");
if (settings.Exists("Autonomous"))
{
mAutonomous = settings.GetBool("Autonomous", false);
mFlags |= Flags.Autonomous;
}
if (settings.Exists("UserDirected"))
{
mUserDirected = settings.GetBool("UserDirected", false);
mFlags |= Flags.UserDirected;
}
if (settings.Exists("AgeSpecies"))
{
mAgeSpecies = settings.GetEnum<CASAGSAvailabilityFlags>("AgeSpecies", CASAGSAvailabilityFlags.None);
mFlags |= Flags.AgeSpecies;
mAgeSpeciesList = null;
}
if (settings.Exists("Availability"))
{
mAvailability = settings.GetEnum<Availability.FlagField>("Availability", Availability.FlagField.None);
mFlags |= Flags.Availability;
}
if (settings.Exists("Advertised"))
{
mAdvertisedOutputs.Clear();
ParseAdvertised(settings.GetStringList("Advertised"));
}
}
示例7: Import
public void Import(Persistence.Lookup settings)
{
mWorld = settings.GetEnum<WorldName>("World", GameUtils.GetCurrentWorld());
mDays = ParserFunctions.ParseDayList(settings.GetString("Days"));
mStartHour = settings.GetInt("StartHour", 0);
mEndHour = settings.GetInt("EndHour", 24);
mSpeed = settings.GetInt("Speed", Relativity.sOneMinute);
}
示例8: Import
public void Import(Persistence.Lookup settings)
{
MasterController.Settings.mCustomBuffs = new StringToStringList().Convert(settings.GetString(GetTitlePrefix()));
}