mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
27 lines
No EOL
516 B
PHP
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(){
|
|
|
|
}
|
|
|
|
} |