Beispiel #1
0
 public override bool Test(Sim a, Hamper target, bool isAutonomous, ref GreyedOutTooltipCallback greyedOutTooltipCallback)
 {
     if (!target.HasClothingPiles() ||
         target.LotCurrent == null)
     {
         return(false);
     }
     if (Sims3.Gameplay.Queries.CountObjects <WashingMachine>(target.LotCurrent) == 0U || target.LotCurrent.GetObjects <WashingMachine>(new Predicate <WashingMachine>(Hamper.DoLaundry.IsWashingMachineUsable)).Count == 0)
     {
         greyedOutTooltipCallback = new GreyedOutTooltipCallback(Hamper.DoLaundry.Definition.NoWashingMachinesTooltip);
         return(false);
     }
     return(true);
 }
Beispiel #2
0
 public override bool Test(Sim a, Hamper target, bool isAutonomous, ref GreyedOutTooltipCallback greyedOutTooltipCallback)
 {
     return(target.HasClothingPiles());
 }