示例#1
0
        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));
        }
示例#2
0
 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));
 }