Beispiel #1
0
 public static IEnumerable <FloatMenuOption> GetFloatMenuOptions(VehiclePawn vehicle, LaunchProtocol launchProtocol, Settlement settlement)
 {
     if (vehicle.CompVehicleLauncher.ControlInFlight)
     {
         foreach (FloatMenuOption floatMenuOption2 in VehicleArrivalActionUtility.GetFloatMenuOptions(() => CanAttack(vehicle, settlement), () => new AerialVehicleArrivalAction_AttackSettlement(vehicle, launchProtocol, settlement, AerialVehicleArrivalModeDefOf.TargetedLanding),
                                                                                                      "AttackAndTargetLanding".Translate(settlement.Label), vehicle, settlement.Tile, null))
         {
             yield return(floatMenuOption2);
         }
     }
     foreach (FloatMenuOption floatMenuOption2 in VehicleArrivalActionUtility.GetFloatMenuOptions(() => CanAttack(vehicle, settlement), () => new AerialVehicleArrivalAction_AttackSettlement(vehicle, launchProtocol, settlement, AerialVehicleArrivalModeDefOf.EdgeDrop),
                                                                                                  "AttackAndDropAtEdge".Translate(settlement.Label), vehicle, settlement.Tile, null))
     {
         yield return(floatMenuOption2);
     }
     foreach (FloatMenuOption floatMenuOption2 in VehicleArrivalActionUtility.GetFloatMenuOptions(() => CanAttack(vehicle, settlement), () => new AerialVehicleArrivalAction_AttackSettlement(vehicle, launchProtocol, settlement, AerialVehicleArrivalModeDefOf.CenterDrop),
                                                                                                  "AttackAndDropInCenter".Translate(settlement.Label), vehicle, settlement.Tile, null))
     {
         yield return(floatMenuOption2);
     }
 }
Beispiel #2
0
 public static IEnumerable <FloatMenuOption> GetFloatMenuOptions(VehiclePawn vehicle, Settlement settlement)
 {
     return(VehicleArrivalActionUtility.GetFloatMenuOptions(() => CanVisit(vehicle, settlement),
                                                            () => new AerialVehicleArrivalAction_VisitSettlement(vehicle, settlement),
                                                            "VisitSettlement".Translate(settlement.Label), vehicle, settlement.Tile, null));
 }