public BCMBiomeSpawnRule([NotNull] BiomeSpawnRule spawnRule) { Name = spawnRule.Name; if (spawnRule.BiomeGenRanges != null) { foreach (var b in spawnRule.BiomeGenRanges) { BiomeList.Add(new BCMVector2d(b)); } } if (spawnRule.DistanceFromCenterRanges != null) { foreach (var d in spawnRule.DistanceFromCenterRanges) { DistList.Add(new BCMVector2(d)); } } if (spawnRule.TerrainGenRanges != null) { foreach (var t in spawnRule.TerrainGenRanges) { TerrainList.Add(new BCMVector2(t)); } } }
public BCMBiomeSpawnRule(BiomeSpawnRule spawnRule) { Name = spawnRule.Name; //Prob = Math.Round(spawnRule.probability, 3); if (spawnRule.BiomeGenRanges != null) { foreach (var b in spawnRule.BiomeGenRanges) { BiomeList.Add(new BCMVector2D(b)); } } if (spawnRule.DistanceFromCenterRanges != null) { foreach (var d in spawnRule.DistanceFromCenterRanges) { DistList.Add(new BCMVector2(d)); } } if (spawnRule.TerrainGenRanges != null) { foreach (var t in spawnRule.TerrainGenRanges) { TerrainList.Add(new BCMVector2(t)); } } }