本文整理汇总了C#中Pool.CheckIfTeenOrBelowOnLot方法的典型用法代码示例。如果您正苦于以下问题:C# Pool.CheckIfTeenOrBelowOnLot方法的具体用法?C# Pool.CheckIfTeenOrBelowOnLot怎么用?C# Pool.CheckIfTeenOrBelowOnLot使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Pool
的用法示例。
在下文中一共展示了Pool.CheckIfTeenOrBelowOnLot方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddSkinnyDipper
public static void AddSkinnyDipper(Pool ths, Sim s)
{
if (ths == null) return;
ulong simDescriptionId = s.SimDescription.SimDescriptionId;
//if (!ths.mSkinnyDipperList.Contains(simDescriptionId))
{
foreach (ulong num2 in ths.mSkinnyDipperList)
{
SimDescription description = SimDescription.Find(num2);
if (description != null)
{
Sim createdSim = description.CreatedSim;
EventTracker.SendEvent(EventTypeId.kGoSkinnyDipping, createdSim, s);
EventTracker.SendEvent(EventTypeId.kGoSkinnyDipping, s, createdSim);
}
}
EventTracker.SendEvent(EventTypeId.kGoSkinnyDipping, s);
//ths.mSkinnyDipperList.Add(simDescriptionId);
if ((ths.LotCurrent != null) && (!ths.LotCurrent.IsWorldLot))
{
if (ths.mSkinnyDipBroadcaster != null)
{
try
{
ths.mSkinnyDipBroadcaster.ExecuteOnEnterCallbackOnSimsInRadius(s);
}
catch (Exception e)
{
ths.mSkinnyDipBroadcaster.Dispose();
ths.mSkinnyDipBroadcaster = null;
Common.DebugException(ths, s, e);
}
}
if (ths.mSkinnyDipBroadcaster == null)
{
ths.mSkinnyDipBroadcaster = new PoolRoomCheckBroadcaster(ths, Pool.kSkinnyDipReactionParams, new EnterSkinnyDippingPoolAreaProxy(ths).Perform);
}
}
else
{
ths.mSkinnyDipBroadcaster.Dispose();
ths.mSkinnyDipBroadcaster = null;
}
// Custom
if ((!Woohooer.Settings.mAllowTeenSkinnyDip) && (Woohooer.Settings.mEnforceSkinnyDipPrivacy))
{
if ((ths.mChildEnteredBroadcaster == null) && ths.IsOutside)
{
ths.mChildEnteredBroadcaster = new ReactionBroadcaster(ths, Pool.kChildEnterReactionParams, new ChildEnterSkinnyDippingPoolAreaProxy(ths).Perform);
}
ths.CheckIfTeenOrBelowOnLot();
if (!ths.mHasAddedLotCheckForChild)
{
ths.mHasAddedLotCheckForChild = true;
Sim.sOnLotChangedDelegates -= ths.OnChildLotChanged;
Sim.sOnLotChangedDelegates += ths.OnChildLotChanged;
}
}
else
{
if ((ths.mChildEnteredBroadcaster == null) && ths.IsOutside)
{
ths.mChildEnteredBroadcaster = new ReactionBroadcaster(ths, Pool.kChildEnterReactionParams, HotTubBaseEx.OnStub);
}
ths.mHasAddedLotCheckForChild = true;
Sim.sOnLotChangedDelegates -= ths.OnChildLotChanged;
}
}
}