示例#1
0
 protected int CalculateFinalCount(Map map)
 {
     if (this.count < 0)
     {
         return(GenStep_Scatterer.CountFromPer10kCells(this.countPer10kCellsRange.RandomInRange, map, -1));
     }
     return(this.count);
 }
示例#2
0
        protected int CalculateFinalCount(Map map)
        {
            int result;

            if (this.count < 0)
            {
                result = GenStep_Scatterer.CountFromPer10kCells(this.countPer10kCellsRange.RandomInRange, map, -1);
            }
            else
            {
                result = this.count;
            }
            return(result);
        }
示例#3
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);
        }
示例#4
0
            internal void <> m__0()
            {
                GenStep_Scatterer genStep_Scatterer = (GenStep_Scatterer)Activator.CreateInstance(this.localSt);

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