Esempio n. 1
0
        public GeneratorProcess(CubeWorldGenerator generator, CubeWorld world)
        {
            this.finished  = false;
            this.generator = generator;
            this.world     = world;

            generator.Prepare();
            totalCost = generator.GetTotalCost();
        }
Esempio n. 2
0
        public GeneratorProcess(CubeWorldGenerator generator, CubeWorld world)
        {
            this.finished = false;
            this.generator = generator;
            this.world = world;

            generator.Prepare();
            totalCost = generator.GetTotalCost();
        }
Esempio n. 3
0
        public GeneratorProcess Generate(CubeWorldGenerator generator)
        {
            enqueueTileUpdates = false;
            reportTileInvalidated = false;
            updateLighting = false;

            ChainedWorldGenerator chained = new ChainedWorldGenerator();
            chained.AddGenertor(generator);
            chained.AddGenertor(new InternalWorldInitializationGenerator());

            return new GeneratorProcess(chained, this.world);
        }
 public void AddGenertor(CubeWorldGenerator generator)
 {
     generators.Add(generator);
 }
Esempio n. 5
0
 public void AddGenertor(CubeWorldGenerator generator)
 {
     generators.Add(generator);
 }