本文整理汇总了C#中Sim.SetObjectToReset方法的典型用法代码示例。如果您正苦于以下问题:C# Sim.SetObjectToReset方法的具体用法?C# Sim.SetObjectToReset怎么用?C# Sim.SetObjectToReset使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Sim
的用法示例。
在下文中一共展示了Sim.SetObjectToReset方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Perform
//.........这里部分代码省略.........
}
using (DreamCatcher.HouseholdStore store = new DreamCatcher.HouseholdStore(sim.Household, true))
{
PlumbBob.DoSelectActor(sim, true);
}
}
catch (Exception e)
{
Common.Exception(sim, null, "DoSelectActor", e);
}
}
if ((myBed != null) && (myBedData != null))
{
if ((sim.Partner != null) && (sim.Partner.CreatedSim != null))
{
myBed.ClaimOwnership(sim, myBedData);
}
}
}
}
else
{
if (sim.Inventory == null)
{
sim.AddComponent<InventoryComponent>(new object[0x0]);
}
if (Instantiation.AttemptToPutInSafeLocation(sim, false))
{
ResetRouting(sim);
sim.SetObjectToReset();
// This is necessary to clear certain types of interactions
// (it is also called in SetObjectToReset(), though doesn't always work there)
if (sim.InteractionQueue != null)
{
sim.InteractionQueue.OnReset();
}
}
}
ResetSkillModifiers(simDesc);
ResetRole(sim);
if (simDesc.IsEnrolledInBoardingSchool())
{
simDesc.BoardingSchool.OnRemovedFromSchool();
}
MiniSimDescription miniSim = MiniSimDescription.Find(simDesc.SimDescriptionId);
if (miniSim != null)
{
miniSim.Instantiated = true;
}
UpdateInterface(sim);
return sim;
}
}
else if (simDesc.Service is Butler)
{