NostalgiaCore/src/network/protocol/packet/StartGamePacket.php
2025-04-12 19:13:36 +08:00

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);
}
}