Ejemplo n.º 1
0
        public override IEnumerable <FloatMenuOption> GetFloatMenuOptions(Caravan caravan)
        {
            using (IEnumerator <FloatMenuOption> enumerator = base.GetFloatMenuOptions(caravan).GetEnumerator())
            {
                if (enumerator.MoveNext())
                {
                    FloatMenuOption o = enumerator.Current;
                    yield return(o);

                    /*Error: Unable to find new state assignment for yield return*/;
                }
            }
            using (IEnumerator <FloatMenuOption> enumerator2 = CaravanArrivalAction_VisitPeaceTalks.GetFloatMenuOptions(caravan, this).GetEnumerator())
            {
                if (enumerator2.MoveNext())
                {
                    FloatMenuOption f = enumerator2.Current;
                    yield return(f);

                    /*Error: Unable to find new state assignment for yield return*/;
                }
            }
            yield break;
IL_0156:
            /*Error near IL_0157: Unexpected return in MoveNext()*/;
        }
Ejemplo n.º 2
0
 public override IEnumerable <FloatMenuOption> GetFloatMenuOptions(Caravan caravan)
 {
     foreach (FloatMenuOption o in base.GetFloatMenuOptions(caravan))
     {
         yield return(o);
     }
     foreach (FloatMenuOption f in CaravanArrivalAction_VisitPeaceTalks.GetFloatMenuOptions(caravan, this))
     {
         yield return(f);
     }
 }
Ejemplo n.º 3
0
 public override IEnumerable <FloatMenuOption> GetFloatMenuOptions(Caravan caravan)
 {
     foreach (FloatMenuOption o in this.< GetFloatMenuOptions > __BaseCallProxy0(caravan))
     {
         yield return(o);
     }
     foreach (FloatMenuOption f in CaravanArrivalAction_VisitPeaceTalks.GetFloatMenuOptions(caravan, this))
     {
         yield return(f);
     }
     yield break;
 }
Ejemplo n.º 4
0
        public override FloatMenuAcceptanceReport StillValid(Caravan caravan, int destinationTile)
        {
            FloatMenuAcceptanceReport floatMenuAcceptanceReport = base.StillValid(caravan, destinationTile);

            if (!floatMenuAcceptanceReport)
            {
                return(floatMenuAcceptanceReport);
            }
            if (this.peaceTalks != null && this.peaceTalks.Tile != destinationTile)
            {
                return(false);
            }
            return(CaravanArrivalAction_VisitPeaceTalks.CanVisit(caravan, this.peaceTalks));
        }
Ejemplo n.º 5
0
 internal FloatMenuAcceptanceReport <> m__0()
 {
     return(CaravanArrivalAction_VisitPeaceTalks.CanVisit(this.caravan, this.peaceTalks));
 }
Ejemplo n.º 6
0
 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));
 }