27 public function __construct(
28 private int $networkId,
29 private ?ScriptDebugShapeType $type,
31 private ?
float $scale,
33 private ?
float $totalTimeLeft,
34 private ?
Color $color,
35 private ?
string $text,
37 private ?
Vector3 $lineEndLocation,
38 private ?
float $arrowHeadLength,
39 private ?
float $arrowHeadRadius,
40 private ?
int $segments,
43 public function getNetworkId() :
int{
return $this->networkId; }
45 public function getType() : ?ScriptDebugShapeType{
return $this->type; }
47 public function getLocation() : ?
Vector3{
return $this->location; }
49 public function getScale() : ?
float{
return $this->scale; }
51 public function getRotation() : ?
Vector3{
return $this->rotation; }
53 public function getTotalTimeLeft() : ?
float{
return $this->totalTimeLeft; }
55 public function getColor() : ?
Color{
return $this->color; }
57 public function getText() : ?
string{
return $this->text; }
59 public function getBoxBound() : ?
Vector3{
return $this->boxBound; }
61 public function getLineEndLocation() : ?
Vector3{
return $this->lineEndLocation; }
63 public function getArrowHeadLength() : ?
float{
return $this->arrowHeadLength; }
65 public function getArrowHeadRadius() : ?
float{
return $this->arrowHeadRadius; }
67 public function getSegments() : ?
int{
return $this->segments; }
103 $out->
writeOptional($this->type, fn(ScriptDebugShapeType $type) => $out->putByte($type->value));
107 $out->
writeOptional($this->totalTimeLeft, $out->putLFloat(...));
112 $out->
writeOptional($this->arrowHeadLength, $out->putLFloat(...));
113 $out->
writeOptional($this->arrowHeadRadius, $out->putLFloat(...));