示例#1
0
 public override bool Test(Sim a, ClothingPileWet target, bool isAutonomous, ref GreyedOutTooltipCallback greyedOutTooltipCallback)
 {
     if (Sims3.Gameplay.Queries.CountObjects <Clothesline>(target.LotCurrent) == 0U)
     {
         greyedOutTooltipCallback = new GreyedOutTooltipCallback(ClothingPileWet.DryClothesOnClothesline.NoClotheslinesOnLotToolTip);
         return(false);
     }
     if (Clothesline.FindClosestAvailibleClothesline((GameObject)target, a) == null)
     {
         greyedOutTooltipCallback = new GreyedOutTooltipCallback(ClothingPileWet.DryClothesOnClothesline.NoAvailibleClotheslinesOnLot);
         return(false);
     }
     return(true);
 }
示例#2
0
 public override bool Test(Sim a, WashingMachine target, bool isAutonomous, ref GreyedOutTooltipCallback greyedOutTooltipCallback)
 {
     if (target.mWashState != WashingMachine.WashState.HasCleanLaundry)
     {
         return(false);
     }
     if (!WashingMachine.DryClothesBase.DoesClotheslineExist(target.LotCurrent))
     {
         if (!target.LotCurrent.IsCommunityLot && !WashingMachine.DryClothesBase.DoesDryerExist(target.LotCurrent))
         {
             greyedOutTooltipCallback = new GreyedOutTooltipCallback(WashingMachine.DryClothesOnClothesline.NoClotheslinesOnLotToolTip);
         }
         return(false);
     }
     if (Clothesline.FindClosestAvailibleClothesline((GameObject)target, a) == null)
     {
         greyedOutTooltipCallback = new GreyedOutTooltipCallback(WashingMachine.DryClothesOnClothesline.NoAvailibleClotheslinesOnLot);
         return(false);
     }
     return(true);
 }