21 public function __construct(
22 private UuidInterface $packId,
23 private string $version,
24 private int $sizeBytes,
25 private string $encryptionKey =
"",
26 private string $subPackName =
"",
27 private string $contentId =
"",
28 private bool $hasScripts =
false,
29 private bool $isAddonPack =
false,
30 private bool $isRtxCapable =
false,
31 private string $cdnUrl =
""
34 public function getPackId() : UuidInterface{
38 public function getVersion() :
string{
39 return $this->version;
42 public function getSizeBytes() :
int{
43 return $this->sizeBytes;
46 public function getEncryptionKey() :
string{
47 return $this->encryptionKey;
50 public function getSubPackName() :
string{
51 return $this->subPackName;
54 public function getContentId() :
string{
55 return $this->contentId;
58 public function hasScripts() :
bool{
59 return $this->hasScripts;
62 public function isAddonPack() :
bool{
return $this->isAddonPack; }
64 public function isRtxCapable() :
bool{
return $this->isRtxCapable; }
66 public function getCdnUrl() :
string{
return $this->cdnUrl; }
69 $out->putUUID($this->packId);
70 $out->putString($this->version);
71 $out->putLLong($this->sizeBytes);
72 $out->putString($this->encryptionKey);
73 $out->putString($this->subPackName);
74 $out->putString($this->contentId);
75 $out->putBool($this->hasScripts);
76 $out->putBool($this->isAddonPack);
77 $out->putBool($this->isRtxCapable);
78 $out->putString($this->cdnUrl);
92 return new self($uuid, $version, $sizeBytes, $encryptionKey, $subPackName, $contentId, $hasScripts, $isAddonPack, $rtxCapable, $cdnUrl);