void CreateBaseGrid()
{
int width = m_size.Width;
int height = m_size.Height;
int depth = m_size.Depth;
Parallel.For(0, height, y =>
{
for (int x = 0; x < width; ++x)
{
int surface = m_data.GetSurfaceLevel(x, y);
for (int z = 0; z < depth; ++z)
{
var p = new IntVector3(x, y, z);
TileData td;
if (z < surface)
{
td = TileData.GetNaturalWall(MaterialID.Granite);
}
else
{
td = TileData.EmptyTileData;
}
SetTileData(p, td);
}
}
});
}