Beispiel #1
0
 public override void Parse()
 {
     if (ReleaseFrom >= Release.PRODUCTION_201701242205_837386174)
     {
         FlatId = PacketOriginal.NextInt();
     }
 }
 public override void Parse()
 {
     PageId    = PacketOriginal.NextInt();
     ItemId    = PacketOriginal.NextInt();
     ExtraData = PacketOriginal.NextString();
     Amount    = PacketOriginal.NextInt();
 }
        public override void Parse()
        {
            Categories = new List <CallForHelpCategoryData>(PacketOriginal.NextInt());

            for (var i = 0; i < Categories.Capacity; i++)
            {
                var category = new CallForHelpCategoryData
                {
                    Name   = PacketOriginal.NextString(),
                    Topics = new List <CallForHelpTopicData>(PacketOriginal.NextInt())
                };

                for (var j = 0; j < category.Topics.Capacity; j++)
                {
                    category.Topics.Add(new CallForHelpTopicData
                    {
                        Name        = PacketOriginal.NextString(),
                        Id          = PacketOriginal.NextInt(),
                        Consequence = PacketOriginal.NextString()
                    });
                }

                Categories.Add(category);
            }
        }
        public override void Parse()
        {
            RoomId      = PacketOriginal.NextInt();
            Name        = PacketOriginal.NextString();
            Description = PacketOriginal.NextString();
            DoorMode    = PacketOriginal.NextInt();
            Password    = PacketOriginal.NextString();
            MaxUsers    = PacketOriginal.NextInt();
            CategoryId  = PacketOriginal.NextInt();

            Tags = new List <string>(PacketOriginal.NextInt());
            for (var i = 0; i < Tags.Capacity; i++)
            {
                Tags.Add(PacketOriginal.NextString());
            }

            TradeSettings       = PacketOriginal.NextInt();
            AllowPets           = PacketOriginal.NextBool();
            AllowPetsEat        = PacketOriginal.NextBool();
            RoomBlockingEnabled = PacketOriginal.NextBool();
            HideWall            = PacketOriginal.NextBool();
            WallThickness       = PacketOriginal.NextInt();
            FloorThickness      = PacketOriginal.NextInt();
            ModerationSettings  = new RoomModerationSettings(PacketOriginal);
            ChatSettings        = new RoomChatSettings(PacketOriginal);
            Unknown0            = PacketOriginal.NextBool();
        }
 public override void Parse()
 {
     SenderUserId = PacketOriginal.NextInt();
     Message      = PacketOriginal.NextString();
     Timestamp    = PacketOriginal.NextInt();
     Unknown0     = PacketOriginal.BytesAvailable ? PacketOriginal.NextString() : null;
 }
        public override void Parse()
        {
            UserId                 = PacketOriginal.NextInt();
            Username               = PacketOriginal.NextString();
            Figure                 = PacketOriginal.NextString();
            Motto                  = PacketOriginal.NextString();
            CreationDate           = PacketOriginal.NextString();
            AchievementPoints      = PacketOriginal.NextInt();
            FriendCount            = PacketOriginal.NextInt();
            IsFriend               = PacketOriginal.NextBool();
            IsFriendRequestPending = PacketOriginal.NextBool();
            IsOnline               = PacketOriginal.NextBool();

            Groups = new List <HabboGroupEntryData>(PacketOriginal.NextInt());

            for (var i = 0; i < Groups.Capacity; i++)
            {
                Groups.Add(new HabboGroupEntryData
                {
                    GroupId        = PacketOriginal.NextInt(),
                    Name           = PacketOriginal.NextString(),
                    Badge          = PacketOriginal.NextString(),
                    Colour1        = PacketOriginal.NextString(),
                    Colour2        = PacketOriginal.NextString(),
                    IsFavourite    = PacketOriginal.NextBool(),
                    Unknown0       = PacketOriginal.NextInt(),
                    IsForumEnabled = PacketOriginal.NextBool()
                });
            }

            LastOnline  = PacketOriginal.NextInt();
            ShowProfile = PacketOriginal.NextBool();
        }
 public override void Parse()
 {
     if (PacketOriginal.BytesAvailable)
     {
         Reason = PacketOriginal.NextInt();
     }
 }
Beispiel #8
0
        public override void Parse()
        {
            PageId       = PacketOriginal.NextInt();
            CatalogType  = PacketOriginal.NextString();
            LayoutCode   = PacketOriginal.NextString();
            Localization = new CatalogLocalizationData(PacketOriginal);

            Offers = new List <CatalogPageMessageOfferData>(PacketOriginal.NextInt());
            for (var i = 0; i < Offers.Capacity; i++)
            {
                Offers.Add(new CatalogPageMessageOfferData(PacketOriginal));
            }

            OfferId  = PacketOriginal.NextInt();
            Unknown1 = PacketOriginal.NextBool();

            if (PacketOriginal.BytesAvailable)
            {
                FrontPageItems = new List <FrontPageItem>(PacketOriginal.NextInt());
                for (var i = 0; i < FrontPageItems.Capacity; i++)
                {
                    FrontPageItems.Add(new FrontPageItem(PacketOriginal));
                }
            }
        }
 public override void Parse()
 {
     Unknown0 = PacketOriginal.NextString();
     Unknown1 = PacketOriginal.NextString();
     Unknown2 = PacketOriginal.NextString();
     Unknown3 = PacketOriginal.NextString();
     Unknown4 = PacketOriginal.NextInt();
 }
Beispiel #10
0
 public override void Parse()
 {
     VirtualId         = PacketOriginal.NextInt();
     Figure            = PacketOriginal.NextString();
     Gender            = PacketOriginal.NextString();
     Motto             = PacketOriginal.NextString();
     AchievementPoints = PacketOriginal.NextInt();
 }
        public override void Parse()
        {
            RoomId   = PacketOriginal.NextInt();
            Password = PacketOriginal.NextString();
            Unused   = PacketOriginal.NextInt();

            Connection.Session.Room.LastFlatConnectionRoomId = RoomId;
        }
Beispiel #12
0
        public override void Parse()
        {
            Messages = new List <string>(PacketOriginal.NextInt());

            for (var i = 0; i < Messages.Capacity; i++)
            {
                Messages.Add(PacketOriginal.NextString());
            }
        }
Beispiel #13
0
        public override void Parse()
        {
            PacketOriginal.NextInt();
            TypeId = PacketOriginal.NextInt();

            Connection.Session.Navigator.SetLastSearch(Category, CategoryId, TypeId == 16
                ? NavigatorSearchType.PromotionHot
                : NavigatorSearchType.PromotionNew);
        }
        public override void Parse()
        {
            AcceptIds = new List <int>(PacketOriginal.NextInt());

            for (var i = 0; i < AcceptIds.Capacity; i++)
            {
                AcceptIds.Add(PacketOriginal.NextInt());
            }
        }
        public override void Parse()
        {
            RoomUsers = new List <RoomUser>(PacketOriginal.NextInt());

            for (var i = 0; i < RoomUsers.Capacity; i++)
            {
                RoomUsers.Add(new RoomUser(PacketOriginal));
            }
        }
        public override void Parse()
        {
            DeclineAll = PacketOriginal.NextBool();
            DeclineIds = new List <int>(PacketOriginal.NextInt());

            for (var i = 0; i < DeclineIds.Capacity; i++)
            {
                DeclineIds.Add(PacketOriginal.NextInt());
            }
        }
Beispiel #17
0
        public override void Parse()
        {
            Width   = PacketOriginal.NextInt();
            Entries = new List <short>(PacketOriginal.NextInt());

            for (var i = 0; i < Entries.Capacity; i++)
            {
                Entries.Add(PacketOriginal.NextShort());
            }
        }
        public override void Parse()
        {
            TotalRequests = PacketOriginal.NextInt();
            Requests      = new List <FriendRequestData>(PacketOriginal.NextInt());

            for (var i = 0; i < Requests.Capacity; i++)
            {
                Requests.Add(new FriendRequestData(PacketOriginal));
            }
        }
Beispiel #19
0
        public override void Parse()
        {
            Limit        = PacketOriginal.NextInt();
            FavouriteIds = new List <int>(PacketOriginal.NextInt());

            for (var i = 0; i < FavouriteIds.Capacity; i++)
            {
                FavouriteIds.Add(PacketOriginal.NextInt());
            }
        }
Beispiel #20
0
        public override void Parse()
        {
            UserId = PacketOriginal.NextInt();
            IsMe   = PacketOriginal.NextBool();

            // Check if this packet is repeated.
            if (Connection.LastIncomingPacket == Incoming.GetExtendedProfile)
            {
                Discard = true;
            }
        }
        public override void Parse()
        {
            Unknown0 = PacketOriginal.NextInt();
            Unknown1 = PacketOriginal.NextInt();
            Friends  = new List <FriendData>(PacketOriginal.NextInt());

            for (var i = 0; i < Friends.Capacity; i++)
            {
                Friends.Add(new FriendData(PacketOriginal));
            }
        }
 public override void Parse()
 {
     Volume1         = PacketOriginal.NextInt();
     Volume2         = PacketOriginal.NextInt();
     Volume3         = PacketOriginal.NextInt();
     ChatPreference  = PacketOriginal.NextBool();
     InvitesStatus   = PacketOriginal.NextBool();
     FocusPreference = PacketOriginal.NextBool();
     FriendBarState  = PacketOriginal.NextInt();
     Unknown0        = PacketOriginal.NextInt();
 }
Beispiel #23
0
        public override void Parse()
        {
            Aliases = new List <Tuple <string, string> >(PacketOriginal.NextInt());

            for (var i = 0; i < Aliases.Capacity; i++)
            {
                var one = PacketOriginal.NextString();
                var two = PacketOriginal.NextString();

                Aliases.Add(new Tuple <string, string>(one, two));
            }
        }
Beispiel #24
0
 public override void Parse()
 {
     PageId      = PacketOriginal.NextInt();
     ItemId      = PacketOriginal.NextInt();
     ExtraData   = PacketOriginal.NextString();
     GiftUser    = PacketOriginal.NextString();
     GiftMessage = PacketOriginal.NextString();
     SpriteId    = PacketOriginal.NextInt();
     Ribbon      = PacketOriginal.NextInt();
     Colour      = PacketOriginal.NextInt();
     Unknown0    = PacketOriginal.NextBool();
 }
Beispiel #25
0
 public override void Parse()
 {
     Unknown0           = PacketOriginal.NextBool();
     RoomData           = new WebRoomData(PacketOriginal);
     Unknown1           = PacketOriginal.NextBool();
     Unknown2           = PacketOriginal.NextBool();
     Unknown3           = PacketOriginal.NextBool();
     Unknown4           = PacketOriginal.NextBool();
     ModerationSettings = new RoomModerationSettings(PacketOriginal);
     Unknown5           = PacketOriginal.NextBool();
     ChatSettings       = new RoomChatSettings(PacketOriginal);
 }
        public override void Parse()
        {
            FriendsMax = PacketOriginal.NextInt();
            Unknown0   = PacketOriginal.NextInt();
            Unknown1   = PacketOriginal.NextInt();
            Categories = new List <FriendCategoryData>(PacketOriginal.NextInt());

            for (var i = 0; i < Categories.Capacity; i++)
            {
                Categories.Add(new FriendCategoryData(PacketOriginal));
            }
        }
Beispiel #27
0
        public override void Parse()
        {
            // Habbo web specific.
            SearchCode    = PacketOriginal.NextString();
            Text          = PacketOriginal.NextString();
            SearchResults = new List <WebSearchResultList>(PacketOriginal.NextInt());

            for (var i = 0; i < SearchResults.Capacity; i++)
            {
                SearchResults.Add(new WebSearchResultList(PacketOriginal));
            }
        }
        public override void Parse()
        {
            Unknown0 = PacketOriginal.NextInt();
            Unknown1 = PacketOriginal.NextInt();
            Unknown2 = PacketOriginal.NextInt();
            Unknown3 = PacketOriginal.NextInt();
            Unknown4 = new List <int>(PacketOriginal.NextInt());

            for (var i = 0; i < Unknown4.Capacity; i++)
            {
                Unknown4.Add(PacketOriginal.NextInt());
            }
        }
 public override void Parse()
 {
     Id          = PacketOriginal.NextInt();
     OwnerId     = PacketOriginal.NextInt();
     OwnerName   = PacketOriginal.NextString();
     Unknown0    = PacketOriginal.NextInt();
     Unknown1    = PacketOriginal.NextInt();
     Name        = PacketOriginal.NextString();
     Description = PacketOriginal.NextString();
     Unknown2    = PacketOriginal.NextInt();
     Unknown3    = PacketOriginal.NextInt();
     Unknown4    = PacketOriginal.NextInt();
 }
        public override void Parse()
        {
            UserId = PacketOriginal.NextInt();

            var equippedCount = PacketOriginal.NextInt();

            EquippedBadges = new Dictionary <int, string>(equippedCount);

            for (var i = 0; i < equippedCount; i++)
            {
                EquippedBadges.Add(PacketOriginal.NextInt(), PacketOriginal.NextString());
            }
        }