From 6242089b28cccbfdce175ce3533bd16fd10c8254 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Wed, 29 May 2013 14:09:36 +0200 Subject: [PATCH] Removed incomplete generator --- src/world/generator/NormalGenerator.php | 83 ------------------------- 1 file changed, 83 deletions(-) delete mode 100644 src/world/generator/NormalGenerator.php diff --git a/src/world/generator/NormalGenerator.php b/src/world/generator/NormalGenerator.php deleted file mode 100644 index ed89bab0d..000000000 --- a/src/world/generator/NormalGenerator.php +++ /dev/null @@ -1,83 +0,0 @@ -options = $options; - if(isset($this->options["elevation"])){ - $this->options["elevation"] = intval($this->options["elevation"]); - }else{ - $this->options["elevation"] = 62; - } - $this->chunks = array(); - } - - public function init(Level $level, Random $random){ - $this->level = $level; - $this->random = $random; - $this->noise1 = new NoiseGeneratorOctaves($this->random, 16); - $this->chunkNoise = array(); - } - - public function generateChunk($chunkX, $chunkY, $chunkZ){ - $ix = $chunkX.".".$chunkZ; - if(!isset($this->chunkNoise[$ix])){ - $this->chunkNoise[$ix] = $this->noise1->generateNoiseOctaves(); - } - $this->random->setSeed((int) ($chunkX * 0xdead + $chunkZ * 0xbeef)); - $startY = $chunkY << 4; - $endY = $startY + 16; - for($z = 0; $z < 16; ++$z){ - for($x = 0; $x < 16; ++$x){ - $blocks = ""; - $metas = ""; - for($y = $startY; $y < $endY; ++$y){ - - } - } - } - $this->level->setMiniChunk($chunkX, $chunkZ, $chunkY, $this->chunks[$chunkY]); - } - - public function populateChunk($chunkX, $chunkY, $chunkZ){ - - } - - public function populateLevel(){ - - } - - public function getSpawn(){ - return new Vector3(128, 128, 128); - } -} \ No newline at end of file