Exemple #1
0
        public void Execute(int i)
        {
            Utils.IndexDeflattenizer2D(i, TotalBlockNumberX, out int x, out int z);

            Result[i] = new int3()
            {
                x = TerrainGenerator.GenerateBedrockHeight(x, z),
                y = TerrainGenerator.GenerateStoneHeight(x, z),
                z = TerrainGenerator.GenerateDirtHeight(x, z)
            };
        }
 public void Execute(int i)
 {
     Utils.IndexDeflattenizer3D(i, TotalBlockNumberX, TotalBlockNumberY, out int x, out int y, out int z);
     Result[i] = TerrainGenerator.DetermineType(x, y, z, Heights[Utils.IndexFlattenizer2D(x, z, TotalBlockNumberX)]);
 }