57 $this->type = $in->getByte();
59 for($i = 0; $i < $count; ++$i){
62 if($this->type === self::TYPE_ADD){
67 $entry->platformChatId = $in->
getString();
68 $entry->buildPlatform = $in->
getLInt();
69 $entry->skinData = $in->getSkin();
70 $entry->isTeacher = $in->
getBool();
71 $entry->isHost = $in->
getBool();
72 $entry->isSubClient = $in->
getBool();
77 $this->entries[$i] = $entry;
79 if($this->type === self::TYPE_ADD){
80 for($i = 0; $i < $count; ++$i){
81 $this->entries[$i]->skinData->setVerified($in->
getBool());
87 $out->putByte($this->type);
89 foreach($this->entries as $entry){
90 if($this->type === self::TYPE_ADD){
91 $out->putUUID($entry->uuid);
92 $out->putActorUniqueId($entry->actorUniqueId);
93 $out->putString($entry->username);
94 $out->putString($entry->xboxUserId);
95 $out->putString($entry->platformChatId);
96 $out->putLInt($entry->buildPlatform);
97 $out->putSkin($entry->skinData);
98 $out->putBool($entry->isTeacher);
99 $out->putBool($entry->isHost);
100 $out->putBool($entry->isSubClient);
102 $out->putUUID($entry->uuid);
105 if($this->type === self::TYPE_ADD){
106 foreach($this->entries as $entry){
107 $out->putBool($entry->skinData->isVerified());