20 public function __construct(
21 private string $packId,
22 private string $version,
23 private int $sizeBytes,
24 private string $encryptionKey =
"",
25 private string $subPackName =
"",
26 private string $contentId =
"",
27 private bool $hasScripts =
false,
28 private bool $isAddonPack =
false,
29 private bool $isRtxCapable =
false,
30 private string $cdnUrl =
""
33 public function getPackId() :
string{
37 public function getVersion() :
string{
38 return $this->version;
41 public function getSizeBytes() :
int{
42 return $this->sizeBytes;
45 public function getEncryptionKey() :
string{
46 return $this->encryptionKey;
49 public function getSubPackName() :
string{
50 return $this->subPackName;
53 public function getContentId() :
string{
54 return $this->contentId;
57 public function hasScripts() :
bool{
58 return $this->hasScripts;
61 public function isAddonPack() :
bool{
return $this->isAddonPack; }
63 public function isRtxCapable() :
bool{
return $this->isRtxCapable; }
65 public function getCdnUrl() :
string{
return $this->cdnUrl; }
68 $out->putString($this->packId);
69 $out->putString($this->version);
70 $out->putLLong($this->sizeBytes);
71 $out->putString($this->encryptionKey);
72 $out->putString($this->subPackName);
73 $out->putString($this->contentId);
74 $out->putBool($this->hasScripts);
75 $out->putBool($this->isAddonPack);
76 $out->putBool($this->isRtxCapable);
77 $out->putString($this->cdnUrl);
91 return new self($uuid, $version, $sizeBytes, $encryptionKey, $subPackName, $contentId, $hasScripts, $isAddonPack, $rtxCapable, $cdnUrl);