Cleaned up LoginPacket handling, don't nuke the buffer

This commit is contained in:
Dylan K. Taylor
2017-09-26 09:49:35 +01:00
parent 91c6086ae1
commit ccbdb77618
3 changed files with 18 additions and 6 deletions

View File

@ -62,6 +62,14 @@ abstract class DataPacket extends BinaryStream{
return false;
}
/**
* Returns whether the packet may legally have unread bytes left in the buffer.
* @return bool
*/
public function mayHaveUnreadBytes() : bool{
return false;
}
public function decode(){
$this->offset = 0;
$this->decodeHeader();