public override FloatMenuAcceptanceReport StillValid(Caravan caravan, int destinationTile) { FloatMenuAcceptanceReport floatMenuAcceptanceReport = base.StillValid(caravan, destinationTile); if (!floatMenuAcceptanceReport) { return floatMenuAcceptanceReport; } if (this.settlement != null && this.settlement.Tile != destinationTile) { return false; } return CaravanArrivalAction_AttackSettlement.CanAttack(caravan, this.settlement); }
public static IEnumerable <FloatMenuOption> GetFloatMenuOptions(Caravan caravan, SettlementBase settlement) { return(CaravanArrivalActionUtility.GetFloatMenuOptions <CaravanArrivalAction_AttackSettlement>(() => CaravanArrivalAction_AttackSettlement.CanAttack(caravan, settlement), () => new CaravanArrivalAction_AttackSettlement(settlement), "AttackSettlement".Translate(new object[] { settlement.Label }), caravan, settlement.Tile, settlement)); }
internal FloatMenuAcceptanceReport <> m__0() { return(CaravanArrivalAction_AttackSettlement.CanAttack(this.caravan, this.settlement)); }