25 public function __construct(
26 private ?
Vector3 $targetCenterOffset,
27 private int $actorUniqueId
30 public function getTargetCenterOffset() : ?
Vector3{
return $this->targetCenterOffset; }
32 public function getActorUniqueId() :
int{
return $this->actorUniqueId; }
34 public static function read(ByteBufferReader $in) :
self{
35 $targetCenterOffset = CommonTypes::readOptional($in, CommonTypes::getVector3(...));
36 $actorUniqueId = LE::readSignedLong($in);
43 public function write(ByteBufferWriter $out) :
void{
44 CommonTypes::writeOptional($out, $this->targetCenterOffset, CommonTypes::putVector3(...));
45 LE::writeSignedLong($out, $this->actorUniqueId);