示例#1
0
 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));
         }
     }
 }
示例#2
0
 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));
         }
     }
 }