示例#1
0
        public ChunkCellData(CellSettings settings, CaveChunkManager chunkManager, Vector3Int chunkCoordinate)
        {
            _chunkManager = chunkManager;

            Settings        = settings;
            ChunkCoordinate = chunkCoordinate;
            //ChunkSeed = Settings.GenerateSeed(Settings.Seed, chunkCoordinate);

            _noiseGenerator = new Noise(Settings.Seed);
        }
示例#2
0
        protected ChunkCellData(CellSettings settings, CaveChunkManager chunkManager, Vector3Int chunkCoordinate)
        {
            Debug.Log($"Created chunk {GetType()}");

            _chunkManager = chunkManager;

            Settings        = settings;
            ChunkCoordinate = chunkCoordinate;
            ChunkSeed       = Settings.GenerateSeed(Settings.Seed, chunkCoordinate);
        }
 public GeneratedChunkCellData(CellSettings settings, CaveChunkManager chunkManager, Vector3Int chunkCoordinate) : base(settings, chunkManager, chunkCoordinate)
 {
 }