Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }