39 public static function create(
string $presetId,
Vector2 $viewAngle,
float $distance, CameraAimAssistTargetMode $targetMode, CameraAimAssistActionType $actionType,
bool $showDebugRender) : self{
41 $result->presetId = $presetId;
42 $result->viewAngle = $viewAngle;
43 $result->distance = $distance;
44 $result->targetMode = $targetMode;
45 $result->actionType = $actionType;
46 $result->showDebugRender = $showDebugRender;
64 $this->viewAngle = CommonTypes::getVector2($in);
65 $this->distance = LE::readFloat($in);
66 $this->targetMode = CameraAimAssistTargetMode::fromPacket(Byte::readUnsigned($in));
67 $this->actionType = CameraAimAssistActionType::fromPacket(Byte::readUnsigned($in));
68 $this->showDebugRender = CommonTypes::getBool($in);
73 CommonTypes::putVector2($out, $this->viewAngle);
74 LE::writeFloat($out, $this->distance);
75 Byte::writeUnsigned($out, $this->targetMode->value);
76 Byte::writeUnsigned($out, $this->actionType->value);
77 CommonTypes::putBool($out, $this->showDebugRender);