23 public function __construct(
24 private string $serverId,
25 private string $scenarioId,
26 private string $worldId,
27 private string $ownerId,
30 public function getServerId() :
string{
return $this->serverId; }
32 public function getScenarioId() :
string{
return $this->scenarioId; }
34 public function getWorldId() :
string{
return $this->worldId; }
36 public function getOwnerId() :
string{
return $this->ownerId; }
38 public static function read(ByteBufferReader $in) :
self{
39 $serverId = CommonTypes::getString($in);
40 $scenarioId = CommonTypes::getString($in);
41 $worldId = CommonTypes::getString($in);
42 $ownerId = CommonTypes::getString($in);
52 public function write(ByteBufferWriter $out) :
void{
53 CommonTypes::putString($out, $this->serverId);
54 CommonTypes::putString($out, $this->scenarioId);
55 CommonTypes::putString($out, $this->worldId);
56 CommonTypes::putString($out, $this->ownerId);