コード例 #1
0
ファイル: Level.php プロジェクト: ZenaGamingsky/Steadfast2
 public function generateChunk($x, $z)
 {
     if (!isset($this->chunkGenerationQueue[$index = PHP_INT_SIZE === 8 ? ($x & 0xffffffff) << 32 | $z & 0xffffffff : $x . ":" . $z])) {
         $this->chunkGenerationQueue[$index] = true;
         $this->server->getGenerationManager()->requestChunk($this, $x, $z);
     }
 }
コード例 #2
0
ファイル: Level.php プロジェクト: boybook/PocketMine-MP
 public function generateChunk($x, $z)
 {
     if (!isset($this->chunkGenerationQueue["{$x}:{$z}"])) {
         $this->chunkGenerationQueue["{$x}:{$z}"] = true;
         $this->server->getGenerationManager()->requestChunk($this, $x, $z);
     }
 }
コード例 #3
0
ファイル: Level.php プロジェクト: hlogeon/PocketMineJs-MP
 public function generateChunk($x, $z)
 {
     if (!isset($this->chunkGenerationQueue[$index = Level::chunkHash($x, $z)])) {
         $this->chunkGenerationQueue[$index] = true;
         $this->server->getGenerationManager()->requestChunk($this, $x, $z);
     }
 }