Esempio n. 1
0
        public static TerrainGen Create(World world, LayerCollection layers)
        {
            TerrainGen provider = new TerrainGen();

            provider.Init(world, layers);
            return(provider);
        }
Esempio n. 2
0
        private void StartWorld()
        {
            SetFeatures();
            Configure();

            networking.StartConnections(this);
            terrainGen = TerrainGen.Create(this, layers);
        }
Esempio n. 3
0
        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);
        }