Beispiel #1
0
        public static List <DebugMenuOption> Options_Scatterers()
        {
            List <DebugMenuOption> list = new List <DebugMenuOption>();

            foreach (Type item in typeof(GenStep_Scatterer).AllLeafSubclasses())
            {
                Type localSt = item;
                list.Add(new DebugMenuOption(localSt.ToString(), DebugMenuOptionMode.Tool, delegate
                {
                    GenStep_Scatterer genStep_Scatterer = (GenStep_Scatterer)Activator.CreateInstance(localSt);
                    genStep_Scatterer.ForceScatterAt(UI.MouseCell(), Find.CurrentMap);
                }));
            }
            return(list);
        }
Beispiel #2
0
            internal void <> m__0()
            {
                GenStep_Scatterer genStep_Scatterer = (GenStep_Scatterer)Activator.CreateInstance(this.localSt);

                genStep_Scatterer.ForceScatterAt(UI.MouseCell(), Find.CurrentMap);
            }