public override FloatMenuAcceptanceReport StillValid(Caravan caravan, int destinationTile) { FloatMenuAcceptanceReport floatMenuAcceptanceReport = true; if (!(bool)floatMenuAcceptanceReport) { return(floatMenuAcceptanceReport); } if (mapParent != null && mapParent.Tile != destinationTile) { return(false); } return(CaravanArrivalAction_EnterToShipCrash.CanVisit(caravan, mapParent)); }
private IEnumerable <FloatMenuOption> GetFloatMenuOptions(Caravan caravan, MapParent mapParent) { return(CaravanArrivalActionUtility.GetFloatMenuOptions(() => CaravanArrivalAction_EnterToShipCrash.CanVisit(caravan, mapParent), () => new CaravanArrivalAction_EnterToShipCrash(mapParent, Generator), "EnterMap".Translate(mapParent.Label), caravan, mapParent.Tile, mapParent)); }