mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
31 lines
No EOL
537 B
PHP
31 lines
No EOL
537 B
PHP
<?php
|
|
|
|
class StartGamePacket extends RakNetDataPacket{
|
|
public $seed;
|
|
public $generator;
|
|
public $gamemode;
|
|
public $eid;
|
|
public $x;
|
|
public $y;
|
|
public $z;
|
|
|
|
public function pid(){
|
|
return ProtocolInfo::START_GAME_PACKET;
|
|
}
|
|
|
|
public function decode(){
|
|
|
|
}
|
|
|
|
public function encode(){
|
|
$this->reset();
|
|
$this->putInt($this->seed);//long
|
|
$this->putInt($this->generator);
|
|
$this->putInt($this->gamemode);
|
|
$this->putInt($this->eid);
|
|
$this->putFloat($this->x);
|
|
$this->putFloat($this->y);
|
|
$this->putFloat($this->z);
|
|
}
|
|
|
|
} |