39 public static function create(
int $actorRuntimeId,
string $emoteId,
int $emoteLengthTicks,
string $xboxUserId,
string $platformChatId,
int $flags) : self{
41 $result->actorRuntimeId = $actorRuntimeId;
42 $result->emoteId = $emoteId;
43 $result->emoteLengthTicks = $emoteLengthTicks;
44 $result->xboxUserId = $xboxUserId;
45 $result->platformChatId = $platformChatId;
46 $result->flags = $flags;
69 $this->actorRuntimeId =
CommonTypes::getActorRuntimeId($in);
70 $this->emoteId = CommonTypes::getString($in);
71 $this->emoteLengthTicks = VarInt::readUnsignedInt($in);
72 $this->xboxUserId = CommonTypes::getString($in);
73 $this->platformChatId = CommonTypes::getString($in);
74 $this->flags = Byte::readUnsigned($in);
78 CommonTypes::putActorRuntimeId($out, $this->actorRuntimeId);
79 CommonTypes::putString($out, $this->emoteId);
80 VarInt::writeUnsignedInt($out, $this->emoteLengthTicks);
81 CommonTypes::putString($out, $this->xboxUserId);
82 CommonTypes::putString($out, $this->platformChatId);
83 Byte::writeUnsigned($out, $this->flags);