NostalgiaCore/src/network/protocol/packet/LoginPacket.php
2025-04-29 19:21:59 +08:00

27 lines
No EOL
516 B
PHP

<?php
class LoginPacket extends RakNetDataPacket{
public $username;
public $protocol1;
public $protocol2;
public $clientId;
public $loginData;
public function pid(){
return ProtocolInfo::LOGIN_PACKET;
}
public function decode(){
$this->username = $this->getString();
$this->protocol1 = $this->getInt();
$this->protocol2 = $this->getInt();
$this->clientId = $this->getInt();//null
$this->loginData = $this->getString();
$this->PROTOCOL = $this->protocol1;
}
public function encode(){
}
}