15declare(strict_types=1);
17namespace raklib\protocol;
20 public static $ID = MessageIdentifiers::ID_INCOMPATIBLE_PROTOCOL_VERSION;
22 public int $protocolVersion;
25 public static function create(
int $protocolVersion,
int $serverId) :
self{
27 $result->protocolVersion = $protocolVersion;
28 $result->serverId = $serverId;
33 $out->putByte($this->protocolVersion);
35 $out->putLong($this->serverId);
39 $this->protocolVersion = $in->getByte();
41 $this->serverId = $in->
getLong();
decodePayload(PacketSerializer $in)
writeMagic(BinaryStream $out)
readMagic(BinaryStream $in)