Ejemplo n.º 1
0
        private static void CallOrbitalstrikeOf()
        {
            List <FloatMenuOption> list = new List <FloatMenuOption>();

            foreach (OrbitalStrikeDef StrikeDef in DefDatabase <OrbitalStrikeDef> .AllDefs)
            {
                OrbitalStrikeDef localStrike = StrikeDef;
                list.Add(new FloatMenuOption(localStrike.LabelCap + " - ", delegate()
                {
                    OrdnanceUtility.StartTargeting(localStrike, Find.CurrentMap);
                }, MenuOptionPriority.Default, null, null, 0f, null, null));
            }
            Find.WindowStack.Add(new FloatMenu(list));
        }
Ejemplo n.º 2
0
        private static void CallArtillerystrikeOf()
        {
            List <FloatMenuOption> list = new List <FloatMenuOption>();
            IntVec3 cell = UI.MouseCell();

            foreach (ArtilleryStrikeDef StrikeDef in DefDatabase <ArtilleryStrikeDef> .AllDefs)
            {
                ArtilleryStrikeDef localStrike = StrikeDef;
                list.Add(new FloatMenuOption(localStrike.LabelCap + " - ", delegate()
                {
                    OrdnanceUtility.SpawnArtilleryStrike(Find.CurrentMap, cell, localStrike);
                }, MenuOptionPriority.Default, null, null, 0f, null, null));
            }
            Find.WindowStack.Add(new FloatMenu(list));
        }