public static IEnumerable <FloatMenuOption> GetSite(
            Site site,
            IEnumerable <IThingHolder> pods,
            CompLaunchableSRTS representative,
            Caravan car)
        {
            foreach (FloatMenuOption floatMenuOption in SRTSStatic.GetMapParent((MapParent)site, pods, representative, car))
            {
                FloatMenuOption o = floatMenuOption;
                yield return(o);

                o = (FloatMenuOption)null;
            }
            foreach (FloatMenuOption floatMenuOption in SRTSStatic.GetVisitSite(representative, pods, site, car))
            {
                FloatMenuOption o2 = floatMenuOption;
                yield return(o2);

                o2 = (FloatMenuOption)null;
            }
        }
 public static IEnumerable <FloatMenuOption> getFM(
     WorldObject wobj,
     IEnumerable <IThingHolder> ih,
     CompLaunchableSRTS comp,
     Caravan car)
 {
     if (wobj is Caravan)
     {
         return(Enumerable.Empty <FloatMenuOption>());
     }
     if (wobj is Site)
     {
         return(SRTSStatic.GetSite(wobj as Site, ih, comp, car));
     }
     if (wobj is Settlement)
     {
         return(SRTSStatic.GetSettle(wobj as Settlement, ih, comp, car));
     }
     if (wobj is MapParent)
     {
         return(SRTSStatic.GetMapParent(wobj as MapParent, ih, comp, car));
     }
     return(Enumerable.Empty <FloatMenuOption>());
 }
        public static IEnumerable <FloatMenuOption> GetSettle(
            Settlement bs,
            IEnumerable <IThingHolder> pods,
            CompLaunchableSRTS representative,
            Caravan car)
        {
            foreach (FloatMenuOption floatMenuOption in SRTSStatic.GetMapParent((MapParent)bs, pods, representative, car))
            {
                FloatMenuOption o = floatMenuOption;
                yield return(o);

                o = (FloatMenuOption)null;
            }
            foreach (FloatMenuOption visitFloatMenuOption in SRTSArrivalActionUtility.GetVisitFloatMenuOptions(representative, pods, bs, car))
            {
                FloatMenuOption f = visitFloatMenuOption;
                yield return(f);

                f = (FloatMenuOption)null;
            }
            /*Uncomment to allow gifting of Ship and contents to faction -SmashPhil*/

            /*foreach (FloatMenuOption giftFloatMenuOption in SRTSArrivalActionUtility.GetGIFTFloatMenuOptions(representative, pods, bs, car))
             * {
             * FloatMenuOption f2 = giftFloatMenuOption;
             * yield return f2;
             * f2 = (FloatMenuOption) null;
             * }*/
            foreach (FloatMenuOption atkFloatMenuOption in SRTSArrivalActionUtility.GetATKFloatMenuOptions(representative, pods, bs, car))
            {
                FloatMenuOption f3 = atkFloatMenuOption;
                yield return(f3);

                f3 = (FloatMenuOption)null;
            }
        }