Example #1
0
 public override InteractionTestResult Test(ref InteractionInstanceParameters parameters, ref GreyedOutTooltipCallback greyedOutTooltipCallback)
 {
     using(WoohooTuningControl control = new WoohooTuningControl(parameters.InteractionObjectPair.Tuning, Woohooer.Settings.mAllowTeenSkinnyDip))
     {
         return base.Test(ref parameters, ref greyedOutTooltipCallback);
     }
 }
Example #2
0
            public override InteractionTestResult Test(ref InteractionInstanceParameters parameters, ref GreyedOutTooltipCallback greyedOutTooltipCallback)
            {
                if (Pool.GetPoolNearestPoint(parameters.Hit.mPoint) == null) return InteractionTestResult.Gen_BadTerrainType;

                using (WoohooTuningControl control = new WoohooTuningControl(parameters.InteractionObjectPair.Tuning, Woohooer.Settings.mAllowTeenSkinnyDip))
                {
                    SwimHere.SwimHereType type = mSwimHereType;
                    try
                    {
                        mSwimHereType = SwimHere.SwimHereType.None;

                        return base.Test(ref parameters, ref greyedOutTooltipCallback);
                    }
                    finally
                    {
                        mSwimHereType = type;
                    }
                }
            }