public static IEnumerable <FloatMenuOption> GetFloatMenuOptions(Caravan caravan, MapParent mapParent) { return(CaravanArrivalActionUtility.GetFloatMenuOptions <CaravanArrivalAction_Enter>(() => CaravanArrivalAction_Enter.CanEnter(caravan, mapParent), () => new CaravanArrivalAction_Enter(mapParent), "EnterMap".Translate(new object[] { mapParent.Label }), caravan, mapParent.Tile, mapParent)); }
public static IEnumerable <FloatMenuOption> GetFloatMenuOptions(Caravan caravan, MapParent escapeShip) { return(CaravanArrivalActionUtility.GetFloatMenuOptions <CaravanArrivalAction_VisitEscapeShip>(() => CaravanArrivalAction_VisitEscapeShip.CanVisit(caravan, escapeShip), () => new CaravanArrivalAction_VisitEscapeShip(escapeShip.GetComponent <EscapeShipComp>()), "VisitEscapeShip".Translate(new object[] { escapeShip.Label }), caravan, escapeShip.Tile, escapeShip)); }
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)); }
public static IEnumerable <FloatMenuOption> GetFloatMenuOptions(Caravan caravan, PeaceTalks peaceTalks) { return(CaravanArrivalActionUtility.GetFloatMenuOptions <CaravanArrivalAction_VisitPeaceTalks>(() => CaravanArrivalAction_VisitPeaceTalks.CanVisit(caravan, peaceTalks), () => new CaravanArrivalAction_VisitPeaceTalks(peaceTalks), "VisitPeaceTalks".Translate(new object[] { peaceTalks.Label }), caravan, peaceTalks.Tile, peaceTalks)); }
public static IEnumerable <FloatMenuOption> GetFloatMenuOptions(Caravan caravan, Settlement settlement) { return(CaravanArrivalActionUtility.GetFloatMenuOptions(() => CanAttack(caravan, settlement), () => new CaravanArrivalAction_AttackSettlement(settlement), "AttackSettlement".Translate(settlement.Label), caravan, settlement.Tile, settlement, settlement.Faction.AllyOrNeutralTo(Faction.OfPlayer) ? ((Action <Action>) delegate(Action action) { Find.WindowStack.Add(Dialog_MessageBox.CreateConfirmation("ConfirmAttackFriendlyFaction".Translate(settlement.LabelCap, settlement.Faction.Name), delegate { action(); })); }) : null)); }
public static IEnumerable <FloatMenuOption> GetFloatMenuOptions(Caravan caravan, Settlement settlement) { return(CaravanArrivalActionUtility.GetFloatMenuOptions(() => CanOfferGiftsTo(caravan, settlement), () => new CaravanArrivalAction_OfferGifts(settlement), "OfferGifts".Translate(), caravan, settlement.Tile, settlement)); }
public static IEnumerable <FloatMenuOption> GetFloatMenuOptions(Caravan caravan, SettlementBase settlement) { return(CaravanArrivalActionUtility.GetFloatMenuOptions <CaravanArrivalAction_VisitSettlement>(() => CaravanArrivalAction_VisitSettlement.CanVisit(caravan, settlement), () => new CaravanArrivalAction_VisitSettlement(settlement), "VisitSettlement".Translate(settlement.Label), caravan, settlement.Tile, settlement)); }
public static IEnumerable <FloatMenuOption> GetFloatMenuOptions(Caravan caravan, Site site) { return(CaravanArrivalActionUtility.GetFloatMenuOptions(() => CanVisit(caravan, site), () => new CaravanArrivalAction_VisitSite(site), site.ApproachOrderString, caravan, site.Tile, site)); }
public static IEnumerable <FloatMenuOption> GetFloatMenuOptions(Caravan caravan, Settlement settlement) { return(CaravanArrivalActionUtility.GetFloatMenuOptions(() => CanTradeWith(caravan, settlement), () => new CaravanArrivalAction_Trade(settlement), "TradeWith".Translate(settlement.Label), caravan, settlement.Tile, settlement)); }