コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
        }