20 public const NETWORK_ID = ProtocolInfo::EMOTE_PACKET;
22 public const FLAG_SERVER = 1 << 0;
23 public const FLAG_MUTE_ANNOUNCEMENT = 1 << 1;
25 private int $actorRuntimeId;
26 private string $emoteId;
27 private int $emoteLengthTicks;
28 private string $xboxUserId;
29 private string $platformChatId;
35 public static function create(
int $actorRuntimeId,
string $emoteId,
int $emoteLengthTicks,
string $xboxUserId,
string $platformChatId,
int $flags) : self{
37 $result->actorRuntimeId = $actorRuntimeId;
38 $result->emoteId = $emoteId;
39 $result->emoteLengthTicks = $emoteLengthTicks;
40 $result->xboxUserId = $xboxUserId;
41 $result->platformChatId = $platformChatId;
42 $result->flags = $flags;
46 public function getActorRuntimeId() : int{
47 return $this->actorRuntimeId;
50 public function getEmoteId() : string{
51 return $this->emoteId;
54 public function getEmoteLengthTicks() : int{ return $this->emoteLengthTicks; }
56 public function getXboxUserId() : string{ return $this->xboxUserId; }
58 public function getPlatformChatId() : string{ return $this->platformChatId; }
60 public function getFlags() : int{
65 $this->actorRuntimeId = $in->getActorRuntimeId();
74 $out->putActorRuntimeId($this->actorRuntimeId);
75 $out->putString($this->emoteId);
77 $out->putString($this->xboxUserId);
78 $out->putString($this->platformChatId);
79 $out->putByte($this->flags);
83 return $handler->handleEmote($this);