22 public const AUDIO_LISTENER_TYPE_CAMERA = 0;
23 public const AUDIO_LISTENER_TYPE_PLAYER = 1;
25 public function __construct(
27 private string $parent,
28 private ?
float $xPosition,
29 private ?
float $yPosition,
30 private ?
float $zPosition,
31 private ?
float $pitch,
33 private ?
float $rotationSpeed,
34 private ?
bool $snapToTarget,
35 private ?
Vector2 $horizontalRotationLimit,
36 private ?
Vector2 $verticalRotationLimit,
37 private ?
bool $continueTargeting,
40 private ?
float $radius,
41 private ?
int $audioListenerType,
42 private ?
bool $playerEffects,
43 private ?
bool $alignTargetAndCameraForward
46 public function getName() :
string{
return $this->name; }
48 public function getParent() :
string{
return $this->parent; }
50 public function getXPosition() : ?
float{
return $this->xPosition; }
52 public function getYPosition() : ?
float{
return $this->yPosition; }
54 public function getZPosition() : ?
float{
return $this->zPosition; }
56 public function getPitch() : ?
float{
return $this->pitch; }
58 public function getYaw() : ?
float{
return $this->yaw; }
60 public function getRotationSpeed() : ?
float {
return $this->rotationSpeed; }
62 public function getSnapToTarget() : ?
bool {
return $this->snapToTarget; }
64 public function getHorizontalRotationLimit() : ?
Vector2{
return $this->horizontalRotationLimit; }
66 public function getVerticalRotationLimit() : ?
Vector2{
return $this->verticalRotationLimit; }
68 public function getContinueTargeting() : ?
bool{
return $this->continueTargeting; }
70 public function getViewOffset() : ?
Vector2{
return $this->viewOffset; }
72 public function getEntityOffset() : ?
Vector3{
return $this->entityOffset; }
74 public function getRadius() : ?
float{
return $this->radius; }
76 public function getAudioListenerType() : ?
int{
return $this->audioListenerType; }
78 public function getPlayerEffects() : ?
bool{
return $this->playerEffects; }
80 public function getAlignTargetAndCameraForward() : ?
bool{
return $this->alignTargetAndCameraForward; }
112 $horizontalRotationLimit,
113 $verticalRotationLimit,
120 $alignTargetAndCameraForward
125 $out->putString($this->name);
126 $out->putString($this->parent);
132 $out->
writeOptional($this->rotationSpeed, $out->putLFloat(...));
133 $out->
writeOptional($this->snapToTarget, $out->putBool(...));
136 $out->
writeOptional($this->continueTargeting, $out->putBool(...));
140 $out->
writeOptional($this->audioListenerType, $out->putByte(...));
141 $out->
writeOptional($this->playerEffects, $out->putBool(...));
142 $out->
writeOptional($this->alignTargetAndCameraForward, $out->putBool(...));