23 public function __construct(
28 public function getName() :
string {
return $this->name; }
32 public static function read(ByteBufferReader $in) :
self{
33 $name = CommonTypes::getString($in);
34 $instruction = CameraSplineInstruction::read($in);
35 return new self($name, $instruction);
38 public function write(ByteBufferWriter $out) :
void{
39 CommonTypes::putString($out, $this->name);
40 $this->instruction->write($out);