public static TerrainGen Create(World world, LayerCollection layers) { TerrainGen provider = new TerrainGen(); provider.Init(world, layers); return(provider); }
private void StartWorld() { SetFeatures(); Configure(); networking.StartConnections(this); terrainGen = TerrainGen.Create(this, layers); }
public void BaseSetUp(LayerConfigObject config, World world, TerrainGen terrainGen) { this.terrainGen = terrainGen; layerName = config.LayerName; IsStructure = config.IsStructure(); this.world = world; Index = config.Index; noise = new NoiseWrapper(world.worldName); #if (UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN) && ENABLE_FASTSIMD noiseSIMD = new NoiseWrapperSIMD(world.name); #endif SetUp(config); }