26 private int $commandPermission,
27 private int $playerPermission,
28 private int $targetActorUniqueId,
29 private array $abilityLayers
32 public function getCommandPermission() : int{ return $this->commandPermission; }
34 public function getPlayerPermission() : int{ return $this->playerPermission; }
36 public function getTargetActorUniqueId() : int{ return $this->targetActorUniqueId; }
45 $targetActorUniqueId = $in->getLLong();
46 $playerPermission = $in->
getByte();
47 $commandPermission = $in->
getByte();
50 for($i = 0, $len = $in->
getByte(); $i < $len; $i++){
51 $abilityLayers[] = AbilitiesLayer::decode($in);
54 return new self($commandPermission, $playerPermission, $targetActorUniqueId, $abilityLayers);
58 $out->putLLong($this->targetActorUniqueId);
59 $out->putByte($this->playerPermission);
60 $out->putByte($this->commandPermission);
62 $out->putByte(count($this->abilityLayers));
63 foreach($this->abilityLayers as $abilityLayer){
64 $abilityLayer->encode($out);