63 $this->actorRuntimeId = $in->getActorRuntimeId();
65 $this->xPos = $this->maybeReadCoord(self::FLAG_HAS_X, $in);
66 $this->yPos = $this->maybeReadCoord(self::FLAG_HAS_Y, $in);
67 $this->zPos = $this->maybeReadCoord(self::FLAG_HAS_Z, $in);
68 $this->pitch = $this->maybeReadRotation(self::FLAG_HAS_PITCH, $in);
69 $this->yaw = $this->maybeReadRotation(self::FLAG_HAS_YAW, $in);
70 $this->headYaw = $this->maybeReadRotation(self::FLAG_HAS_HEAD_YAW, $in);
86 $out->putActorRuntimeId($this->actorRuntimeId);
87 $out->putLShort($this->flags);
88 $this->maybeWriteCoord(self::FLAG_HAS_X, $this->xPos, $out);
89 $this->maybeWriteCoord(self::FLAG_HAS_Y, $this->yPos, $out);
90 $this->maybeWriteCoord(self::FLAG_HAS_Z, $this->zPos, $out);
91 $this->maybeWriteRotation(self::FLAG_HAS_PITCH, $this->pitch, $out);
92 $this->maybeWriteRotation(self::FLAG_HAS_YAW, $this->yaw, $out);
93 $this->maybeWriteRotation(self::FLAG_HAS_HEAD_YAW, $this->headYaw, $out);