本文整理汇总了C#中Persistence.Add方法的典型用法代码示例。如果您正苦于以下问题:C# Persistence.Add方法的具体用法?C# Persistence.Add怎么用?C# Persistence.Add使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Persistence
的用法示例。
在下文中一共展示了Persistence.Add方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Export
public void Export(Persistence.Lookup settings)
{
settings.Add("AgeSpecies", mKey.mAgeSpecies.ToString());
settings.Add("Occult", mKey.mOccult.ToString());
settings.Add("Commodity", mKey.mKind.ToString());
settings.Add("Value", mValue);
}
示例2: Export
public void Export(Persistence.Lookup settings)
{
if (mName == null) return;
settings.Add("Name", mName);
settings.Add("Criteria", mElements);
}
示例3: Export
public override void Export(Persistence.Lookup settings)
{
base.Export(settings);
if (mValue != null)
{
settings.Add("Value", mValue.ToString());
}
}
示例4: Export
public void Export(Persistence.Lookup settings)
{
settings.Add("AutoCommands", Overwatch.Settings.mAutoCommands);
}
示例5: Export
public virtual void Export(Persistence.Lookup settings)
{
settings.Add("StartHour", mHours.x);
settings.Add("EndHour", mHours.y);
}
示例6: Export
public void Export(Persistence.Lookup settings)
{
List<SeasonSettings> allSettings = new List<SeasonSettings>();
foreach (List<SeasonSettings> list in SeasonSettings.Values)
{
allSettings.AddRange(list);
}
settings.Add("Settings", allSettings);
}
示例7: Export
public void Export(Persistence.Lookup settings)
{
settings.Add("Services", serviceSettings.Values);
}
示例8: Export
public void Export(Persistence.Lookup settings)
{
settings.Add("", MasterController.Settings.SkillStamps);
}
示例9: Export
public void Export(Persistence.Lookup settings)
{
settings.Add("Season", mSeason.ToString());
settings.Add("NoSchool", mNoSchool);
settings.Add("Days", mDays);
}
示例10: Export
public void Export(Persistence.Lookup settings)
{
settings.Add("", MasterController.Settings.mFilters);
}
示例11: Export
protected void Export(ref Pair<float, float> pair, Persistence.Lookup settings, string key)
{
settings.Add(key + "First", pair.First);
settings.Add(key + "Second", pair.Second);
}
示例12: Export
public void Export(Persistence.Lookup settings)
{
settings.Add("Name", mName);
if ((mFlags & Flags.Autonomous) == Flags.Autonomous)
{
settings.Add("Autonomous", mAutonomous);
}
if ((mFlags & Flags.UserDirected) == Flags.UserDirected)
{
settings.Add("UserDirected", mUserDirected);
}
if ((mFlags & Flags.AgeSpecies) == Flags.AgeSpecies)
{
settings.Add("AgeSpecies", mAgeSpecies.ToString());
}
if ((mFlags & Flags.Availability) == Flags.Availability)
{
settings.Add("Availability", mAvailability.ToString());
}
settings.Add("Advertised", AdvertisedToString());
}
示例13: Export
public void Export(Persistence.Lookup settings)
{
settings.Add("World", mWorld.ToString());
string days = "";
foreach (DaysOfTheWeek day in mDays)
{
switch(day)
{
case DaysOfTheWeek.Monday:
days += "M";
break;
case DaysOfTheWeek.Tuesday:
days += "T";
break;
case DaysOfTheWeek.Wednesday:
days += "W";
break;
case DaysOfTheWeek.Thursday:
days += "R";
break;
case DaysOfTheWeek.Friday:
days += "F";
break;
case DaysOfTheWeek.Saturday:
days += "S";
break;
case DaysOfTheWeek.Sunday:
days += "U";
break;
}
}
settings.Add("Days", days);
settings.Add("StartHour", mStartHour);
settings.Add("EndHour", mEndHour);
settings.Add("Speed", mSpeed);
}
示例14: Export
public void Export(Persistence.Lookup settings)
{
settings.Add(GetTitlePrefix (), new ListToString<string>().Convert(MasterController.Settings.mCustomBuffs));
}
示例15: Export
public void Export(Persistence.Lookup settings)
{
settings.Add("Name", mName);
List<PersistItem> list = new List<PersistItem>();
foreach (KeyValuePair<SkillNames, int> value in mSkills)
{
list.Add(new PersistItem(value.Key, value.Value));
}
settings.Add("Skill", list);
}