public TerrainChunk(TerrainChunkSettings settings, NoiseProvider noiseProvider, int x, int z) { HeightmapThreadLockObject = new object(); Settings = settings; NoiseProvider = noiseProvider; Neighborhood = new TerrainChunkNeighborhood(); Position = new Vector2i(x, z); }
public TerrainChunk(TerrainChunkSettings settings, WorldGenerator worldGenerator, ChunkEdge edgetype, int x, int z) { HeightmapThreadLockObject = new object(); WorldGenerator = worldGenerator; Settings = settings; EdgeType = edgetype; Biomes = new List <BiomeType>(); Neighborhood = new TerrainChunkNeighborhood(); Position = new Vector2i(x, z); }