protected int CalculateFinalCount(Map map) { if (this.count < 0) { return(GenStep_Scatterer.CountFromPer10kCells(this.countPer10kCellsRange.RandomInRange, map, -1)); } return(this.count); }
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); }
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); }
internal void <> m__0() { GenStep_Scatterer genStep_Scatterer = (GenStep_Scatterer)Activator.CreateInstance(this.localSt); genStep_Scatterer.ForceScatterAt(UI.MouseCell(), Find.CurrentMap); }