Exemple #1
0
 public void UpdateBuffers()
 {
     minBuffer = DensityMin.ToString("0.00");
     maxBuffer = DensityMax.ToString("0.00");
     if (GroupDistance == null)
     {
         GroupDistance = new GroupDistance();
     }
     minDistanceBuffer = GroupDistance.MinDistance.ToString("0.00");
     maxDistanceBuffer = GroupDistance.MaxDistance.ToString("0.00");
     centerPointBuffer = CenterPoint.ToString();
 }
Exemple #2
0
 public override void ExposeData()
 {
     base.ExposeData();
     Scribe_Values.Look(ref DensityMin, "densityMin", DEFAULT_MIN_POP);
     Scribe_Values.Look(ref DensityMax, "densityMax", DEFAULT_MAX_POP);
     Scribe_Values.Look(ref DisableFactionLimit, "disableFactionLimit", true);
     Scribe_Values.Look(ref OverrideFactionMaxCount, "overrideFactionMaxCount", true);
     Scribe_Collections.Look(ref FactionDensities, "factionDensities", LookMode.Deep, new object[0]);
     Scribe_Deep.Look(ref GroupDistance, "groupDistance", null);
     Scribe_Values.Look(ref CenterPointEnabled, "centerPointEnabled", false);
     Scribe_Values.Look(ref CenterPoint, "centerPoint", 0);
     if (GroupDistance == null)
     {
         GroupDistance = new GroupDistance();
     }
     UpdateSettlementsPer100k();
     UpdateBuffers();
 }