public override bool Test(Sim a, ClothingPileWet target, bool isAutonomous, ref GreyedOutTooltipCallback greyedOutTooltipCallback) { if (Sims3.Gameplay.Queries.CountObjects <Dryer>(target.LotCurrent) == 0U) { greyedOutTooltipCallback = new GreyedOutTooltipCallback(ClothingPileWet.DryClothesInDryer.NoDryersOnLotToolTip); return(false); } if (Dryer.FindClosestAvailibleDryer((GameObject)target, a) == null) { greyedOutTooltipCallback = new GreyedOutTooltipCallback(ClothingPileWet.DryClothesInDryer.NoAvailibleDryersOnLot); return(false); } return(true); }
public override bool Test(Sim a, WashingMachine target, bool isAutonomous, ref GreyedOutTooltipCallback greyedOutTooltipCallback) { if (target.mWashState != WashingMachine.WashState.HasCleanLaundry) { return(false); } if (!WashingMachine.DryClothesBase.DoesDryerExist(target.LotCurrent)) { if (!target.LotCurrent.IsCommunityLot && !WashingMachine.DryClothesBase.DoesClotheslineExist(target.LotCurrent)) { greyedOutTooltipCallback = new GreyedOutTooltipCallback(WashingMachine.DryClothesInDryer.NoDryersOnLotToolTip); } return(false); } if (Dryer.FindClosestAvailibleDryer((GameObject)target, a) == null) { greyedOutTooltipCallback = new GreyedOutTooltipCallback(WashingMachine.DryClothesInDryer.NoAvailibleDryersOnLot); return(false); } return(true); }