本文整理汇总了C#中SimDescription.GetOutfitCategoryFromResKey方法的典型用法代码示例。如果您正苦于以下问题:C# SimDescription.GetOutfitCategoryFromResKey方法的具体用法?C# SimDescription.GetOutfitCategoryFromResKey怎么用?C# SimDescription.GetOutfitCategoryFromResKey使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SimDescription
的用法示例。
在下文中一共展示了SimDescription.GetOutfitCategoryFromResKey方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CrossWorldData
public CrossWorldData(SimDescription sim)
{
mName = sim.FullName;
mOutfitCache = new SavedOutfit.Cache(sim);
SimOutfit outfit = sim.GetOutfit(OutfitCategories.Everyday, 0);
if (outfit != null)
{
mSkinToneKey = outfit.SkinToneKey;
mSkinToneIndex = outfit.SkinToneIndex;
}
else
{
mSkinToneKey = sim.SkinToneKey;
mSkinToneIndex = sim.SkinToneIndex;
}
mMalePreference = sim.mGenderPreferenceMale;
mFemalePreference = sim.mGenderPreferenceFemale;
if (sim.CreatedSim != null)
{
if (sim.CreatedSim.mPreviousOutfitKey != null)
{
try
{
mPreviousOutfitCategory = sim.GetOutfitCategoryFromResKey(sim.CreatedSim.mPreviousOutfitKey, out mPreviousOutfitIndex);
}
catch
{ }
}
if (sim.CreatedSim.DreamsAndPromisesManager != null)
{
ActiveDreamNode node = sim.CreatedSim.DreamsAndPromisesManager.LifetimeWishNode;
if (node != null)
{
mLifetimeWishTally = node.InternalCount;
}
}
}
if (sim.Pregnancy != null)
{
mPregnantGender = sim.Pregnancy.mGender;
}
foreach (Trait trait in sim.TraitManager.List)
{
if (trait.IsReward) continue;
mTraits.Add(trait.Guid);
}
SocialNetworkingSkill networkSkill = sim.SkillManager.GetSkill<SocialNetworkingSkill>(SkillNames.SocialNetworking);
if (networkSkill != null)
{
// This value is set to mNumberOfBlogFollowers for some reason
mNumberOfFollowers = networkSkill.mNumberOfFollowers;
// Not transitioned at all
mBlogsCreated = networkSkill.mBlogsCreated;
}
RockBand bandSkill = sim.SkillManager.GetSkill<RockBand>(SkillNames.RockBand);
if (bandSkill != null)
{
mBandInfo = bandSkill.mBandInfo;
}
Collecting collecting = sim.SkillManager.GetSkill<Collecting>(SkillNames.Collecting);
if (collecting != null)
{
// Error in CollectingPropertyStreamWriter:Export() requires that mGlowBugData by transfered manually
// Exported as two Int64, but Imported as a Int64 and Int32
mGlowBugData = collecting.mGlowBugData;
mMushroomsCollected = collecting.mMushroomsCollected;
}
NectarSkill nectar = sim.SkillManager.GetSkill<NectarSkill>(SkillNames.Nectar);
if (nectar != null)
{
mNectarHashesMade = nectar.mHashesMade;
}
Photography photography = sim.SkillManager.GetSkill<Photography>(SkillNames.Photography);
if (photography != null)
{
mSubjectRecords = photography.mSubjectRecords;
}
RidingSkill riding = sim.SkillManager.GetSkill<RidingSkill>(SkillNames.Riding);
if (riding != null)
{
// Error in the Import (Copy/Paste fail by the looks of it), where the CrossCountry Wins are imported instead
mCrossCountryCompetitionsWon = new List<uint>(riding.mCrossCountryCompetitionsWon);
mJumpCompetitionsWon = new List<uint>(riding.mJumpCompetitionsWon);
}
//.........这里部分代码省略.........