本文整理汇总了C#中SimDescription.IsEnrolledInBoardingSchool方法的典型用法代码示例。如果您正苦于以下问题:C# SimDescription.IsEnrolledInBoardingSchool方法的具体用法?C# SimDescription.IsEnrolledInBoardingSchool怎么用?C# SimDescription.IsEnrolledInBoardingSchool使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SimDescription
的用法示例。
在下文中一共展示了SimDescription.IsEnrolledInBoardingSchool方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnPickFromPanel
public static void OnPickFromPanel(SimDescription ths, UIMouseEventArgs eventArgs, GameObjectHit gameObjectHit)
{
try
{
Sims3.Gameplay.UI.PieMenu.ClearInteractions();
Sims3.Gameplay.UI.PieMenu.HidePieMenuSimHead = true;
Sims3.UI.Hud.PieMenu.sIncrementalButtonIndexing = true;
Sim activeActor = Sim.ActiveActor;
if (activeActor != null)
{
if (activeActor.InteractionQueue.CanPlayerQueue())
{
bool success = false;
try
{
IPhone activePhone = null;
if (activeActor.Inventory != null)
{
activePhone = activeActor.Inventory.Find<IPhone>();
}
List<InteractionObjectPair> interactions = new List<InteractionObjectPair>();
bool isServiceAlien = (ths.Household != null) && ths.Household.IsAlienHousehold;
if (GameUtils.IsInstalled(ProductVersion.EP8) && !isServiceAlien)
{
interactions.Add(new InteractionObjectPair(new Mailbox.WriteLoveLetter.Definition(ths.SimDescriptionId), activeActor));
}
if (GameUtils.IsInstalled(ProductVersion.EP10))
{
interactions.Add(new InteractionObjectPair(new OccultMermaid.SignalMermaid.Definition(ths), activeActor));
}
if (ths.CreatedSim != null)
{
List<InteractionObjectPair> others = ths.CreatedSim.GetAllInteractionsForActor(activeActor);
if (others != null)
{
interactions.AddRange(others);
}
}
if (ths.IsHuman)
{
if (ths.CreatedSim != null)
{
interactions.Add(new InteractionObjectPair(CallOver.Singleton, ths.CreatedSim));
}
if (activePhone != null)
{
interactions.Add(new InteractionObjectPair(activePhone.GetCallChatFromRelationPanelDefinition(ths), activePhone));
if (GameUtils.IsInstalled(ProductVersion.EP4))
{
interactions.Add(new InteractionObjectPair(activePhone.GetCallPrank(ths), activePhone));
}
if (GameUtils.IsInstalled(ProductVersion.EP9))
{
interactions.Add(new InteractionObjectPair(activePhone.GetSendChatTextFromRelationPanelDefinition(ths), activePhone));
interactions.Add(new InteractionObjectPair(activePhone.GetSendInsultTextFromRelationPanelDefinition(ths), activePhone));
interactions.Add(new InteractionObjectPair(activePhone.GetSendPictureTextFromRelationPanelDefinition(ths), activePhone));
interactions.Add(new InteractionObjectPair(activePhone.GetSendSecretAdmirerTextFromRelationPanelDefinition(ths), activePhone));
interactions.Add(new InteractionObjectPair(activePhone.GetSendBreakUpTextFromRelationPanelDefinition(ths), activePhone));
if (!sGetSendWooHootyTextDefinition.Valid)
{
interactions.Add(new InteractionObjectPair(activePhone.GetSendWooHootyTextFromRelationPanelDefinition(ths), activePhone));
}
else
{
InteractionDefinition instance = null;
instance = sGetSendWooHootyTextDefinition.Invoke<InteractionDefinition>(new object[] { ths });
interactions.Add(new InteractionObjectPair(instance, activePhone));
}
}
if ((!ths.IsEnrolledInBoardingSchool() && !ths.IsDroppingOut) && !GameStates.IsEarlyDepartureSim(ths.SimDescriptionId))
{
interactions.Add(new InteractionObjectPair(activePhone.GetCallInviteOverFromRelationPanelDefinition(ths, true), activePhone));
interactions.Add(new InteractionObjectPair(activePhone.GetCallInviteToLotFromRelationPanelDefintion(ths), activePhone));
interactions.Add(new InteractionObjectPair(activePhone.GetCallAskOutOnDateFromRelationPanelDefintion(ths), activePhone));
if (!isServiceAlien)
{
interactions.Add(new InteractionObjectPair(activePhone.GetCallInviteHouseholdOverFromRelationshipPanelDefiniton(ths), activePhone));
}
interactions.Add(new InteractionObjectPair(activePhone.GetCallInviteToAttendGraduationFromRelationPanelDefinition(ths), activePhone));
}
else
{
interactions.Add(new InteractionObjectPair(activePhone.GetRemoveFromBoardingSchool(ths), activePhone));
}
}
}
else if (ths.IsPet)
{
if (ths.CreatedSim != null)
//.........这里部分代码省略.........
示例2: MeetsCommonAfterschoolActivityRequirements
public static bool MeetsCommonAfterschoolActivityRequirements(SimDescription actor, AfterschoolActivityType activityToCheck, ref GreyedOutTooltipCallback greyedOutTooltipCallback)
{
bool teen = actor.Teen;
if (!actor.Child && !teen)
{
return false;
}
School school = actor.CareerManager.School;
if (school == null)
{
return false;
}
else if (actor.IsEnrolledInBoardingSchool())
{
return false;
}
/*
else if (!AfterschoolActivity.WorldHasSchoolRabbitHole())
{
return false;
}
*/
else if (HasAfterschoolActivityOfType(actor, activityToCheck))
{
return false;
}
else if (HasAfterschoolActivityOnDays(actor, GetDaysForActivityType(activityToCheck)))
{
greyedOutTooltipCallback = InteractionInstance.CreateTooltipCallback(AfterschoolActivity.LocalizeString(actor.IsFemale, "DayConflict", new object[0x0]));
return false;
}
else if (DoesActivityConflictWithJob(actor, activityToCheck))
{
return false;
}
else if (teen && school.HasCompletedTeenAfterschoolActivityRecital)
{
return false;
}
else if (HasCompletedRecitalForType(school, activityToCheck))
{
return false;
}
else if (IsChildActivity(activityToCheck) && AlreadyHasChildActivity(actor))
{
return false;
}
AgingManager singleton = AgingManager.Singleton;
float num = singleton.AgingYearsToSimDays(singleton.GetCurrentAgingStageLength(actor));
float num2 = singleton.AgingYearsToSimDays(actor.AgingYearsSinceLastAgeTransition);
float num3 = num - num2;
if (num3 <= AfterschoolActivity.kDaysBeforeAgingTrigger)
{
greyedOutTooltipCallback = InteractionInstance.CreateTooltipCallback(AfterschoolActivity.LocalizeString(actor.IsFemale, "AboutToAgeUp", new object[] { actor }));
return false;
}
return true;
}