public void WriteTo(IPacketWriter packet)
 {
     packet.Append(ChatMode);
     packet.Append(ChatSize);
     packet.Append(ChatSpeed);
     packet.Append(ChatDistance);
     packet.Append(ExtraFlood);
 }
        public void WriteTo(IPacketWriter packet)
        {
            packet.Append(One.Count);
            foreach (var s in One)
            {
                packet.Append(s);
            }

            packet.Append(Two.Count);
            foreach (var s in Two)
            {
                packet.Append(s);
            }
        }
Beispiel #3
0
        public void WriteTo(IPacketWriter packet)
        {
            packet.Append(Visible);
            packet.Append(IconId);
            packet.Append(PageId);
            packet.Append(Unknown0);
            packet.Append(Localization);

            packet.Append(Offers.Count);
            foreach (var offer in Offers)
            {
                packet.Append(offer);
            }

            packet.Append(Children.Count);
            foreach (var child in Children)
            {
                child.WriteTo(packet);
            }
        }
Beispiel #4
0
        public void WriteTo(IPacketWriter packet)
        {
            packet.Append(ItemType);

            if (!ItemType.Equals("b"))
            {
                packet.Append(SpriteId);
                packet.Append(Name);
                packet.Append(Amount);
                packet.Append(IsLimited);

                if (IsLimited)
                {
                    packet.Append(LimitedEditionStack);
                    packet.Append(LimitedEditionSells);
                }
            }
            else
            {
                packet.Append(Name);
            }
        }
        public void WriteTo(IPacketWriter packet)
        {
            packet.Append(Position);
            packet.Append(Name);
            packet.Append(Image);
            packet.Append(Type);

            switch (Type)
            {
            case 0:
            case 2:
                packet.Append(TypeStr);
                break;

            case 1:
                packet.Append(TypeInt);
                break;
            }

            packet.Append(ExpirySeconds);
        }
        public void WriteTo(IPacketWriter packet)
        {
            packet.Append(FlatId);
            packet.Append(RoomName);
            packet.Append(OwnerId);
            packet.Append(OwnerName);
            packet.Append(RoomAccess);
            packet.Append(UsersNow);
            packet.Append(UsersMax);
            packet.Append(RoomDescription);
            packet.Append(TradeSettings);
            packet.Append(Score);
            packet.Append(Ranking);
            packet.Append(Category);

            packet.Append(Tags.Count);
            foreach (var tag in Tags)
            {
                packet.Append(tag);
            }

            packet.Append((int)RoomType);

            if (RoomType.HasFlag(WebRoomDataRoomType.Official))
            {
                packet.Append(OfficialRoomPicReference);
            }

            if (RoomType.HasFlag(WebRoomDataRoomType.Group))
            {
                packet.Append(GroupId);
                packet.Append(GroupName);
                packet.Append(GroupBadge);
            }

            if (RoomType.HasFlag(WebRoomDataRoomType.Promotion))
            {
                packet.Append(PromotionName);
                packet.Append(PromotionDescription);
                packet.Append(PromotionMinutesLeft);
            }
        }
Beispiel #7
0
        public void WriteTo(IPacketWriter packet)
        {
            packet.Append(OfferId);
            packet.Append(Name);
            packet.Append(IsRentable);
            packet.Append(CostCredits);
            packet.Append(CostAdditional);
            packet.Append(CostAdditionalType);
            packet.Append(IsGiftable);

            packet.Append(Products.Count);
            foreach (var product in Products)
            {
                product.WriteTo(packet);
            }

            packet.Append(ClubLevel);
            packet.Append(CanSelectAmount);
            packet.Append(false); // ShowPetPreviewDetails
            packet.Append(Unknown1);
        }
 public void WriteTo(IPacketWriter packet)
 {
     packet.Append(WhoMute);
     packet.Append(WhoKick);
     packet.Append(WhoBan);
 }