more packets

This commit is contained in:
Dylan K. Taylor
2017-08-13 17:42:11 +01:00
parent 02cbf800d0
commit 1576a79644
4 changed files with 167 additions and 11 deletions

View File

@ -30,12 +30,15 @@ use pocketmine\network\mcpe\NetworkSession;
class SubClientLoginPacket extends DataPacket{
const NETWORK_ID = ProtocolInfo::SUB_CLIENT_LOGIN_PACKET;
/** @var string */
public $connectionRequestData;
protected function decodePayload(){
//TODO
$this->connectionRequestData = $this->getString();
}
protected function encodePayload(){
//TODO
$this->putString($this->connectionRequestData);
}
public function handle(NetworkSession $session) : bool{