26 private string $easeType;
28 public function __construct(
29 private float $fieldOfView,
30 private float $easeTime,
34 $this->easeType = is_int($easeType) ? CameraSetInstructionEaseType::toName($easeType) : $easeType;
37 public function getFieldOfView() :
float{
return $this->fieldOfView; }
39 public function getEaseTime() :
float{
return $this->easeTime; }
44 public function getEaseType() : string{ return $this->easeType; }
46 public function getClear() : bool{ return $this->clear; }
48 public static function read(ByteBufferReader $in) : self{
49 $fieldOfView = LE::readFloat($in);
50 $easeTime = LE::readFloat($in);
51 $easeType = CommonTypes::getString($in);
52 $clear = CommonTypes::getBool($in);
62 public function write(ByteBufferWriter $out) : void{
63 LE::writeFloat($out, $this->fieldOfView);
64 LE::writeFloat($out, $this->easeTime);
65 CommonTypes::putString($out, $this->easeType);
66 CommonTypes::putBool($out, $this->clear);