13 return this.biomeProfiles.Length > 3;
18 public void SetSize(
int size,
int _poiSize)
21 if (this.map.poiMap ==
null ||
this.Size !=
POIMap.mapSize)
23 this.map.poiMap =
new POIMap();
24 this.map.poiMap.Init(this.Size, _poiSize);
33 this.zone = this.bp.zone;
34 this.zp = this.bp.zoneProfile;
35 this.map = this.bp.map;
36 this.OX = this.zp.offsetX;
37 this.OZ = this.zp.offsetZ;
38 this.blockHeight = this.zp.blockHeight;
39 this.hSetting = this.zp.height;
40 MapGenVariation mapGenVariation = this.variation = this.bp.genSetting.variation;
41 this.layerHeight = mapGenVariation.layerHeight;
42 this.layerRiver = mapGenVariation.layerRiver;
43 this.layerStratum = mapGenVariation.layerStratum;
44 this.layerBiome = mapGenVariation.layerBiome;
45 this.biomeProfiles = mapGenVariation.biomeProfiles;
46 this.biomeShore = mapGenVariation.biomeShore;
47 this.biomeWater = mapGenVariation.biomeWater;
48 this.biomeSand =
EClass.core.refs.biomes.Sand;
49 this.GenerateTerrain();
52 this.map.config.bg = MapBG.None;
53 this.map.config.indoor =
true;
55 if (this.map.config.idSceneProfile.IsEmpty())
57 this.map.config.idSceneProfile = this.zp.idSceneProfile.IsEmpty(this.zp.indoor ?
"indoor" :
null);
59 this.map.config.bg = this.zp.mapBG;
63 protected virtual void GenerateTerrain()
65 this.OnGenerateTerrain();
69 protected virtual bool OnGenerateTerrain()
75 public static string err;
79 public NoiseLayer layerHeight;
83 public NoiseLayer layerRiver;
87 public NoiseLayer layerStratum;
91 public NoiseLayer layerBiome;
115 protected bool skipWater;
127 protected float[,] heights1;
131 protected float[,] heights2;
135 protected float[,] heights3;
139 protected float[,] waters;
143 protected float[,] heights3d;
147 public int blockHeight;
167 protected float waterCount;
175 public bool[,] subBiomes;