本文整理汇总了C#中Persistence.GetInt方法的典型用法代码示例。如果您正苦于以下问题:C# Persistence.GetInt方法的具体用法?C# Persistence.GetInt怎么用?C# Persistence.GetInt使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Persistence
的用法示例。
在下文中一共展示了Persistence.GetInt方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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);
}
示例2: Import
public void Import(Persistence.Lookup settings)
{
mSeason = settings.GetEnum<Season>("Season", Season.Summer);
mDay = settings.GetInt("Day", 0);
}
示例3: 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");
}
示例4: Import
public void Import(Persistence.Lookup settings)
{
mSkill = settings.GetEnum<SkillNames>("Skill", SkillNames.None);
mLevel = settings.GetInt("Level", 0);
}
示例5: Import
public virtual void Import(Persistence.Lookup settings)
{
mType = settings.GetEnum<Weather>("Type", Weather.None);
Import(ref mTemp, settings, "Temp");
Import(ref mLength, settings, "Length");
mWeight = settings.GetInt("Weight", 0);
}
示例6: 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);
}
示例7: Import
public override void Import(Persistence.Lookup settings)
{
base.Import(settings);
mIndex = settings.GetInt("Index", -1);
}