Some protocol changes for 1.1.0.0

This commit is contained in:
Dylan K. Taylor
2017-04-01 19:20:30 +01:00
parent e47c7ea55f
commit 9c25ec3afd
13 changed files with 61 additions and 54 deletions

View File

@ -31,21 +31,21 @@ class CommandStepPacket extends DataPacket{
public $command;
public $overload;
public $uvarint1;
public $uvarint2;
public $bool;
public $uvarint64;
public $args;
public $string4;
public $currentStep;
public $done;
public $clientId;
public $inputJson;
public $outputJson;
public function decode(){
$this->command = $this->getString();
$this->overload = $this->getString();
$this->uvarint1 = $this->getUnsignedVarInt();
$this->uvarint2 = $this->getUnsignedVarInt();
$this->bool = (bool) $this->getByte();
$this->uvarint64 = $this->getUnsignedVarLong();
$this->args = json_decode($this->getString());
$this->string4 = $this->getString();
$this->currentStep = $this->getUnsignedVarInt();
$this->done = (bool) $this->getByte();
$this->clientId = $this->getUnsignedVarLong();
$this->inputJson = json_decode($this->getString());
$this->outputJson = $this->getString();
$this->get(true); //TODO: read command origin data
}