示例#1
0
            public void Read(WorldPacket data)
            {
                MailID = data.ReadInt32();
                uint bodyLength    = data.ReadBits <uint>(13);
                uint subjectLength = data.ReadBits <uint>(9);

                MailBody    = data.ReadString(bodyLength);
                MailSubject = data.ReadString(subjectLength);
            }
示例#2
0
        public void Read(WorldPacket data)
        {
            uint prefixLen = data.ReadBits <uint>(5);
            uint textLen   = data.ReadBits <uint>(8);

            IsLogged = data.HasBit();
            Type     = (ChatMsg)data.ReadInt32();
            Prefix   = data.ReadString(prefixLen);
            Text     = data.ReadString(textLen);
        }
示例#3
0
            public void Read(WorldPacket data)
            {
                uint field_0Length = data.ReadBits <uint>(7);

                field_104 = data.ReadPackedGuid();
                field_0   = data.ReadString(field_0Length);
            }
示例#4
0
 public void Read(WorldPacket data)
 {
     ClubFinderPostingID = data.ReadUInt64();
     ClubID         = data.ReadUInt64();
     ClubFinderGUID = data.ReadPackedGuid();
     ClubName       = data.ReadString(data.ReadBits <uint>(12));
 }
示例#5
0
            public void Read(WorldPacket data)
            {
                RideTicket = new RideTicket();
                RideTicket.Read(data);

                Comment = data.ReadString(data.ReadBits <uint>(9));
            }
示例#6
0
        public void Read(WorldPacket data)
        {
            ClubID      = data.ReadUInt64();
            EventID     = data.ReadUInt64();
            ModeratorID = data.ReadUInt64();
            EventType   = data.ReadUInt8();
            TextureID   = data.ReadUInt32();
            Time        = data.ReadPackedTime();
            Flags       = data.ReadUInt32();

            byte   titleLen = data.ReadBits <byte>(8);
            ushort descLen  = data.ReadBits <ushort>(11);

            Title       = data.ReadString(titleLen);
            Description = data.ReadString(descLen);
        }
示例#7
0
            public void Read(WorldPacket data)
            {
                RideTicket.Read(data);
                GroupFinderActivityID     = data.ReadUInt32();
                LastTitleAuthorGuid       = data.ReadPackedGuid();
                LastDescriptionAuthorGuid = data.ReadPackedGuid();
                LastVoiceChatAuthorGuid   = data.ReadPackedGuid();

                byte titleLength       = data.ReadBits <byte>(8);
                byte descriptionLength = data.ReadBits <byte>(11);
                byte voiceChatLength   = data.ReadBits <byte>(8);

                Title       = data.ReadString(titleLength);
                Description = data.ReadString(descriptionLength);
                VoiceChat   = data.ReadString(voiceChatLength);
            }
示例#8
0
            public void Read(WorldPacket data)
            {
                EventID  = data.ReadUInt64();
                InviteID = data.ReadUInt64();

                EventTitle = data.ReadString(data.ReadBits <byte>(8));
            }
示例#9
0
            public void Read(WorldPacket data)
            {
                byte nameLength = data.ReadBits <byte>(8);

                GuildID = data.ReadPackedGuid();

                GuildName = data.ReadString(nameLength);
            }
示例#10
0
        public void Read(WorldPacket data)
        {
            data.ResetBitPos();

            uint nameLength    = data.ReadBits <uint>(10);
            uint versionLength = data.ReadBits <uint>(10);

            Loaded   = data.HasBit();
            Disabled = data.HasBit();
            if (nameLength > 1)
            {
                Name = data.ReadString(nameLength - 1);
                data.ReadUInt8(); // null terminator
            }
            if (versionLength > 1)
            {
                Version = data.ReadString(versionLength - 1);
                data.ReadUInt8(); // null terminator
            }
        }
示例#11
0
        public void Read(WorldPacket data)
        {
            byte   titleLength       = data.ReadBits <byte>(8);
            ushort descriptionLength = data.ReadBits <ushort>(11);

            EventType = data.ReadUInt8();
            TextureID = data.ReadInt32();
            Time      = data.ReadPackedTime();
            Flags     = data.ReadUInt32();
            var InviteCount = data.ReadUInt32();

            Title       = data.ReadString(titleLength);
            Description = data.ReadString(descriptionLength);

            for (var i = 0; i < InviteCount; ++i)
            {
                CalendarAddEventInviteInfo invite = new CalendarAddEventInviteInfo();
                invite.Read(data);
                Invites[i] = invite;
            }
        }
示例#12
0
        public void Read(WorldPacket data)
        {
            MinLevel    = data.ReadInt32();
            MaxLevel    = data.ReadInt32();
            RaceFilter  = data.ReadInt64();
            ClassFilter = data.ReadInt32();

            uint nameLength                  = data.ReadBits <uint>(6);
            uint virtualRealmNameLength      = data.ReadBits <uint>(9);
            uint guildNameLength             = data.ReadBits <uint>(7);
            uint guildVirtualRealmNameLength = data.ReadBits <uint>(9);
            uint wordsCount                  = data.ReadBits <uint>(3);

            ShowEnemies      = data.HasBit();
            ShowArenaPlayers = data.HasBit();
            ExactName        = data.HasBit();
            if (data.HasBit())
            {
                ServerInfo.Value = new();
            }

            data.ResetBitPos();

            for (int i = 0; i < wordsCount; ++i)
            {
                Words.Add(data.ReadString(data.ReadBits <uint>(7)));
                data.ResetBitPos();
            }

            Name                  = data.ReadString(nameLength);
            VirtualRealmName      = data.ReadString(virtualRealmNameLength);
            Guild                 = data.ReadString(guildNameLength);
            GuildVirtualRealmName = data.ReadString(guildVirtualRealmNameLength);

            if (ServerInfo.HasValue)
            {
                ServerInfo.Value.Read(data);
            }
        }
示例#13
0
            public void Read(WorldPacket data)
            {
                Timestamp  = data.ReadInt32();
                AuthorGUID = data.ReadPackedGuid();

                bool hasClubID       = data.HasBit();
                bool hasChannelGUID  = data.HasBit();
                bool hasRealmAddress = data.HasBit();
                bool hasSlashCmd     = data.HasBit();
                uint textLength      = data.ReadBits <uint>(12);

                if (hasClubID)
                {
                    ClubID.HasValue = true;
                    ClubID.Value    = data.ReadUInt64();
                }

                if (hasChannelGUID)
                {
                    ChannelGUID.HasValue = true;
                    ChannelGUID.Value    = data.ReadPackedGuid();
                }

                if (hasRealmAddress)
                {
                    RealmAddress.HasValue = true;
                    RealmAddress.Value.VirtualRealmAddress = data.ReadUInt32();
                    RealmAddress.Value.field_4             = data.ReadUInt16();
                    RealmAddress.Value.field_6             = data.ReadUInt8();
                }

                if (hasSlashCmd)
                {
                    SlashCmd.HasValue = true;
                    SlashCmd.Value    = data.ReadInt32();
                }

                Text = data.ReadString(textLength);
            }
示例#14
0
 public SupportTicketChatLine(WorldPacket data)
 {
     Timestamp = data.ReadUInt32();
     Text      = data.ReadString(data.ReadBits <uint>(12));
 }
示例#15
0
 public void Read(WorldPacket data)
 {
     Command    = data.ReadUInt32();
     ChannelID  = data.ReadUInt32();
     MessageLog = data.ReadString(data.ReadBits <uint>(12));
 }
示例#16
0
 public void Read(WorldPacket data)
 {
     Timestamp = data.ReadUInt32();
     Text      = data.ReadString(data.ReadBits <uint>(12));
 }
示例#17
0
            public void Read(WorldPacket data)
            {
                PetID = data.ReadPackedGuid();

                PetName = data.ReadString(data.ReadBits <byte>(8));
            }