当前位置: 首页>>代码示例>>C#>>正文


C# Pool.CheckIfTeenOrBelowOnLot方法代码示例

本文整理汇总了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;
                }
            }
        }
开发者ID:Robobeurre,项目名称:NRaas,代码行数:79,代码来源:PoolEx.cs


注:本文中的Pool.CheckIfTeenOrBelowOnLot方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。