42 public static function create(
int $actorRuntimeId,
int $requestType,
string $commandString,
int $actionIndex,
string $sceneName) : self{
44 $result->actorRuntimeId = $actorRuntimeId;
45 $result->requestType = $requestType;
46 $result->commandString = $commandString;
47 $result->actionIndex = $actionIndex;
48 $result->sceneName = $sceneName;
53 $this->actorRuntimeId =
CommonTypes::getActorRuntimeId($in);
54 $this->requestType = Byte::readUnsigned($in);
55 $this->commandString = CommonTypes::getString($in);
56 $this->actionIndex = Byte::readUnsigned($in);
57 $this->sceneName = CommonTypes::getString($in);
61 CommonTypes::putActorRuntimeId($out, $this->actorRuntimeId);
62 Byte::writeUnsigned($out, $this->requestType);
63 CommonTypes::putString($out, $this->commandString);
64 Byte::writeUnsigned($out, $this->actionIndex);
65 CommonTypes::putString($out, $this->sceneName);