Exemplo n.º 1
0
 public function serialize(ServerMessage $message)
 {
     $message->appendString("productpage1");
     $message->appendInt32(2);
     $message->appendString($this->getHeaderImage());
     $message->appendString($this->getTeaserImage());
     $message->appendInt32(4);
     $message->appendString($this->getTextOne());
     $message->appendString($this->getTextTwo());
     $message->appendString($this->getTextDetails());
     $message->appendString($this->getTextTeaser());
 }
Exemplo n.º 2
0
 public function serialize(ServerMessage $message)
 {
     $message->appendString("recycler_prizes");
     $message->appendInt32(3);
     $message->appendString("");
     $message->appendString("");
     $message->appendString("");
     $message->appendInt32(3);
     $message->appendString("");
     $message->appendString("");
     $message->appendString("");
 }
Exemplo n.º 3
0
 public function serialize(ServerMessage $message)
 {
     $message->appendString("default_3x3_color_grouping");
     $message->appendInt32(3);
     $message->appendString($this->getHeaderImage());
     $message->appendString($this->getTeaserImage());
     $message->appendString($this->getSpecialImage());
     $message->appendInt32(3);
     $message->appendString($this->getTextOne());
     $message->appendString($this->getTextDetails());
     $message->appendString($this->getTextTeaser());
 }
Exemplo n.º 4
0
 public function serialize(ServerMessage $message)
 {
     $message->appendString("spaces_new");
     $message->appendInt32(3);
     $message->appendString($this->getHeaderImage());
     $message->appendString($this->getTeaserImage());
     $message->appendString($this->getSpecialImage());
     $message->appendInt32(3);
     $message->appendString($this->getTextOne());
     $message->appendString($this->getTextDetails());
     $message->appendString($this->getTextTeaser());
 }
Exemplo n.º 5
0
 public function serialize(ServerMessage $message)
 {
     $message->appendString("info_pets");
     $message->appendInt32(2);
     $message->appendString($this->getHeaderImage());
     $message->appendString($this->getTeaserImage());
     $message->appendInt32(3);
     $message->appendString($this->getTextOne());
     $message->appendString("");
     $message->appendString($this->getTextTeaser());
     $message->appendInt32(0);
 }
Exemplo n.º 6
0
 public function serialize(ServerMessage $message)
 {
     $message->appendString("guild_custom_furni");
     $message->appendInt32(2);
     $message->appendString($this->getHeaderImage());
     $message->appendString($this->getTeaserImage());
     $message->appendInt32(3);
     $message->appendString($this->getTextOne());
     $message->appendString($this->getTextDetails());
     $message->appendString($this->getTextTeaser());
 }
Exemplo n.º 7
0
 public function serialize(ServerMessage $message)
 {
     $message->appendString("recycler");
     $message->appendInt32(2);
     $message->appendString($this->getHeaderImage());
     $message->appendString($this->getTeaserImage());
     $message->appendInt32(1);
     $message->appendString($this->getTextOne());
     $message->appendInt32(-1);
     $message->appendBoolean(false);
 }
Exemplo n.º 8
0
 public function serialize(ServerMessage $message)
 {
     $message->appendString("frontpage4");
     $message->appendInt32(2);
     $message->appendString($this->getHeaderImage());
     $message->appendString($this->getTeaserImage());
     $message->appendInt32(3);
     $message->appendString($this->getTextOne());
     $message->appendString($this->getTextTwo());
     $message->appendString($this->getTextTeaser());
 }
Exemplo n.º 9
0
 public function serializeExtradata(ServerMessage $message)
 {
     if ($this->isLimited()) {
         $message->appendInt32($this->limitedSells);
         $message->appendInt32($this->limitedStack);
     }
 }
Exemplo n.º 10
0
 public function serialize(ServerMessage $message)
 {
     $message->appendString("soundmachine");
     $message->appendInt32(2);
     $message->appendString($this->getHeaderImage());
     $message->appendString($this->getTeaserImage());
     $message->appendInt32(2);
     $message->appendString($this->getTextOne());
     $message->appendString($this->getTextDetails());
 }
Exemplo n.º 11
0
 public function serialize(ServerMessage $message)
 {
     $message->appendString("sold_ltd_items");
     $message->appendInt32(3);
     $message->appendString($this->getHeaderImage());
     $message->appendString($this->getTeaserImage());
     $message->appendString($this->getSpecialImage());
     $message->appendInt32(0);
 }
Exemplo n.º 12
0
 public function serialize(ServerMessage $message)
 {
     $message->appendString("vip_buy");
     $message->appendInt32(2);
     $message->appendString($this->getHeaderImage());
     $message->appendString($this->getTeaserImage());
     $message->appendInt32(0);
 }
Exemplo n.º 13
0
 public function serialize(ServerMessage $message)
 {
     $message->appendString("club_gifts");
     $message->appendInt32(1);
     $message->appendString($this->getHeaderImage());
     $message->appendInt32(1);
     $message->appendString($this->getTextOne());
 }
Exemplo n.º 14
0
 public function serialize(ServerMessage $message)
 {
     $data = explode("\\|\\|", $this->getTextOne());
     $message->appendString("info_rentables");
     $message->appendInt32(1);
     $message->appendString($this->getHeaderImage());
     $message->appendInt32(count($data));
     foreach ($data as $s) {
         $message->appendString($s);
     }
     $message->appendInt32(0);
 }
Exemplo n.º 15
0
 public function serialize(ServerMessage $message)
 {
     $message->appendString("marketplace");
     $message->appendInt32(0);
     $message->appendInt32(0);
 }
Exemplo n.º 16
0
 public function sendResponse(ServerMessage $message)
 {
     $this->logger->logPacketLine("[SERVER][" . $message->getHeader() . "] => " . $this->cleanUp($message->get()));
     $this->write($message->get());
 }
Exemplo n.º 17
0
 public function __construct(string $publicKey)
 {
     parent::__construct(ServerPacketHeader::SecretKeyMessageComposer);
     $this->appendString($publicKey);
     $this->appendBoolean(true);
 }
Exemplo n.º 18
0
 public function __construct(string $prime, string $generator)
 {
     parent::__construct(ServerPacketHeader::InitCryptoMessageComposer);
     $this->appendString($prime);
     $this->appendString($generator);
 }