Exemplo n.º 1
0
 public override IEnumerable <FloatMenuOption> GetFloatMenuOptions(Caravan caravan)
 {
     foreach (FloatMenuOption floatMenuOption in base.GetFloatMenuOptions(caravan))
     {
         yield return(floatMenuOption);
     }
     if (!base.HasMap)
     {
         foreach (FloatMenuOption floatMenuOption2 in CaravanArrivalAction_VisitSite.GetFloatMenuOptions(caravan, this))
         {
             yield return(floatMenuOption2);
         }
     }
 }
        public override FloatMenuAcceptanceReport StillValid(Caravan caravan, int destinationTile)
        {
            FloatMenuAcceptanceReport floatMenuAcceptanceReport = base.StillValid(caravan, destinationTile);

            if (!floatMenuAcceptanceReport)
            {
                return(floatMenuAcceptanceReport);
            }
            if (this.site != null && this.site.Tile != destinationTile)
            {
                return(false);
            }
            return(CaravanArrivalAction_VisitSite.CanVisit(caravan, this.site));
        }
 public static IEnumerable <FloatMenuOption> GetFloatMenuOptions(Caravan caravan, Site site)
 {
     return(CaravanArrivalActionUtility.GetFloatMenuOptions <CaravanArrivalAction_VisitSite>(() => CaravanArrivalAction_VisitSite.CanVisit(caravan, site), () => new CaravanArrivalAction_VisitSite(site), site.ApproachOrderString, caravan, site.Tile, site));
 }
Exemplo n.º 4
0
 internal FloatMenuAcceptanceReport <> m__0()
 {
     return(CaravanArrivalAction_VisitSite.CanVisit(this.caravan, this.site));
 }