mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-14 15:35:31 +00:00
Found fields of PhotoTransferPacket
now if we could only get portfolios...
This commit is contained in:
parent
d294d5a91b
commit
f6875705a1
@ -31,22 +31,22 @@ class PhotoTransferPacket extends DataPacket{
|
|||||||
const NETWORK_ID = ProtocolInfo::PHOTO_TRANSFER_PACKET;
|
const NETWORK_ID = ProtocolInfo::PHOTO_TRANSFER_PACKET;
|
||||||
|
|
||||||
/** @var string */
|
/** @var string */
|
||||||
public $string1;
|
public $photoName;
|
||||||
/** @var string */
|
/** @var string */
|
||||||
public $string2;
|
public $photoData;
|
||||||
/** @var string */
|
/** @var string */
|
||||||
public $string3;
|
public $bookId; //photos are stored in a sibling directory to the games folder (screenshots/(some UUID)/bookID/example.png)
|
||||||
|
|
||||||
protected function decodePayload(){
|
protected function decodePayload(){
|
||||||
$this->string1 = $this->getString();
|
$this->photoName = $this->getString();
|
||||||
$this->string2 = $this->getString();
|
$this->photoData = $this->getString();
|
||||||
$this->string3 = $this->getString();
|
$this->bookId = $this->getString();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function encodePayload(){
|
protected function encodePayload(){
|
||||||
$this->putString($this->string1);
|
$this->putString($this->photoName);
|
||||||
$this->putString($this->string2);
|
$this->putString($this->photoData);
|
||||||
$this->putString($this->string3);
|
$this->putString($this->bookId);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function handle(NetworkSession $session) : bool{
|
public function handle(NetworkSession $session) : bool{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user