26 private string $easeType;
28 public function __construct(
33 $this->easeType = is_int($easeType) ? CameraSetInstructionEaseType::toName($easeType) : $easeType;
36 public function getValue() :
float{
return $this->value; }
38 public function getTime() :
float{
return $this->time; }
43 public function getEaseType() : string{ return $this->easeType; }
45 public static function read(ByteBufferReader $in) : self{
46 $value = LE::readFloat($in);
47 $time = LE::readFloat($in);
48 $easeType = CommonTypes::getString($in);
57 public function write(ByteBufferWriter $out) : void{
58 LE::writeFloat($out, $this->value);
59 LE::writeFloat($out, $this->time);
60 CommonTypes::putString($out, $this->easeType);