52 ?
bool $detachFromEntity,
56 $result->clear = $clear;
57 $result->fade = $fade;
58 $result->target = $target;
59 $result->removeTarget = $removeTarget;
60 $result->fieldOfView = $fieldOfView;
61 $result->spline = $spline;
62 $result->attachToEntity = $attachToEntity;
63 $result->detachFromEntity = $detachFromEntity;
87 $this->clear = CommonTypes::readOptional($in, CommonTypes::getBool(...));
88 $this->fade = CommonTypes::readOptional($in, CameraFadeInstruction::read(...));
89 $this->target = CommonTypes::readOptional($in, CameraTargetInstruction::read(...));
90 $this->removeTarget = CommonTypes::readOptional($in, CommonTypes::getBool(...));
91 $this->fieldOfView = CommonTypes::readOptional($in, CameraFovInstruction::read(...));
92 $this->spline = CommonTypes::readOptional($in, CameraSplineInstruction::read(...));
93 $this->attachToEntity = CommonTypes::readOptional($in, LE::readSignedLong(...));
94 $this->detachFromEntity = CommonTypes::readOptional($in, CommonTypes::getBool(...));
99 CommonTypes::writeOptional($out, $this->clear, CommonTypes::putBool(...));
100 CommonTypes::writeOptional($out, $this->fade, fn(ByteBufferWriter $out,
CameraFadeInstruction $v) => $v->write($out));
101 CommonTypes::writeOptional($out, $this->target, fn(ByteBufferWriter $out,
CameraTargetInstruction $v) => $v->write($out));
102 CommonTypes::writeOptional($out, $this->removeTarget, CommonTypes::putBool(...));
103 CommonTypes::writeOptional($out, $this->fieldOfView, fn(ByteBufferWriter $out,
CameraFovInstruction $v) => $v->write($out));
104 CommonTypes::writeOptional($out, $this->spline, fn(ByteBufferWriter $out,
CameraSplineInstruction $v) => $v->write($out));
105 CommonTypes::writeOptional($out, $this->attachToEntity, LE::writeSignedLong(...));
106 CommonTypes::writeOptional($out, $this->detachFromEntity, CommonTypes::putBool(...));