13 if (this.surrounding ==
null)
17 return this.surrounding[1, 1];
28 public virtual void OnCreate()
33 public void GenerateMap(
Zone zone)
43 if (!this.zoneProfile)
45 this.zoneProfile = zone.GetProfile();
47 if (!this.genSetting.variation)
49 this.genSetting.variation = this.zoneProfile.variation.Instantiate<
MapGenVariation>();
51 this.genSetting.seed = ((this.zoneProfile.seeds.height == -1) ? (Rand.rnd(10000) + 1) : this.zoneProfile.seeds.height);
53 if (zone.IDGenerator !=
null)
57 else if (zone.IsRegion)
64 MapGen.Instance.Generate(
this);
66 this.map.SetZone(zone);
69 MapGen.Instance.Populate(this.map);
83 public List<Chara> charas =
new List<Chara>();
86 public List<Thing> things =
new List<Thing>();
98 public static int debugCount;
101 public bool customMap;
104 public bool ignoreRoad;