示例#1
0
 public void Write(WorldPacket data)
 {
     data.WriteUInt32(GarrPlotInstanceID);
     data.WriteUInt32(GarrBuildingID);
     data.WriteInt64(TimeBuilt);
     data.WriteUInt32(CurrentGarSpecID);
     data.WriteInt64(TimeSpecCooldown);
     data.WriteBit(Active);
     data.FlushBits();
 }
示例#2
0
 public void Write(WorldPacket data)
 {
     data.WriteUInt64(DbID);
     data.WriteInt64(OfferTime);
     data.WriteUInt32(OfferDuration);
     data.WriteInt64(StartTime);
     data.WriteUInt32(TravelDuration);
     data.WriteUInt32(MissionDuration);
     data.WriteUInt32(MissionRecID);
     data.WriteUInt32(MissionState);
     data.WriteUInt32(SuccessChance);
     data.WriteUInt32(Flags);
     data.WriteFloat(MissionScalar);
 }
示例#3
0
        public void Write(WorldPacket data)
        {
            data.WriteUInt64(DbID);
            data.WriteUInt32(GarrFollowerID);
            data.WriteUInt32(Quality);
            data.WriteUInt32(FollowerLevel);
            data.WriteUInt32(ItemLevelWeapon);
            data.WriteUInt32(ItemLevelArmor);
            data.WriteUInt32(Xp);
            data.WriteUInt32(Durability);
            data.WriteUInt32(CurrentBuildingID);
            data.WriteUInt32(CurrentMissionID);
            data.WriteInt32(AbilityID.Count);
            data.WriteUInt32(ZoneSupportSpellID);
            data.WriteUInt32(FollowerStatus);
            data.WriteInt32(Health);
            data.WriteInt8(BoardIndex);
            data.WriteInt64(HealingTimestamp);

            AbilityID.ForEach(ability => data.WriteUInt32(ability.Id));

            data.WriteBits(CustomName.GetByteCount(), 7);
            data.FlushBits();
            data.WriteString(CustomName);
        }
示例#4
0
 public void Write(WorldPacket data)
 {
     data.WritePackedGuid(RequesterGuid);
     data.WriteUInt32(Id);
     data.WriteUInt32((uint)Type);
     data.WriteInt64(Time);
 }
示例#5
0
 public void Write(WorldPacket data)
 {
     data.WriteInt64(ID);
     data.WriteInt32(RecordID);
     data.WriteBit(Data.HasValue);
     if (Data.HasValue)
     {
         data.WriteUInt32(Data.Value.GetSize());
         data.WriteBytes(Data.Value);
     }
 }
示例#6
0
        public void Write(WorldPacket data)
        {
            data.WriteInt32(GarrTalentID);
            data.WriteInt32(Rank);
            data.WriteInt64(ResearchStartTime);
            data.WriteInt32(Flags);
            data.WriteBit(Socket.HasValue);
            data.FlushBits();

            if (Socket.HasValue)
            {
                Socket.Value.Write(data);
            }
        }
            public void Write(WorldPacket data)
            {
                data.WritePackedGuid(Guid);
                data.WriteUInt64(GuildClubMemberID);
                data.WriteUInt8(ListPosition);
                data.WriteUInt8(RaceId);
                data.WriteUInt8((byte)ClassId);
                data.WriteUInt8(SexId);
                data.WriteInt32(Customizations.Count);

                data.WriteUInt8(ExperienceLevel);
                data.WriteUInt32(ZoneId);
                data.WriteUInt32(MapId);
                data.WriteVector3(PreloadPos);
                data.WritePackedGuid(GuildGuid);
                data.WriteUInt32((uint)Flags);
                data.WriteUInt32((uint)Flags2);
                data.WriteUInt32(Flags3);
                data.WriteUInt32(PetCreatureDisplayId);
                data.WriteUInt32(PetExperienceLevel);
                data.WriteUInt32(PetCreatureFamilyId);

                data.WriteUInt32(ProfessionIds[0]);
                data.WriteUInt32(ProfessionIds[1]);

                foreach (var visualItem in VisualItems)
                {
                    visualItem.Write(data);
                }

                data.WriteInt64(LastPlayedTime);
                data.WriteUInt16(SpecID);
                data.WriteUInt32(Unknown703);
                data.WriteUInt32(LastLoginVersion);
                data.WriteUInt32(Flags4);
                data.WriteInt32(MailSenders.Count);
                data.WriteInt32(MailSenderTypes.Count);
                data.WriteUInt32(OverrideSelectScreenFileDataID);

                foreach (ChrCustomizationChoice customization in Customizations)
                {
                    data.WriteUInt32(customization.ChrCustomizationOptionID);
                    data.WriteUInt32(customization.ChrCustomizationChoiceID);
                }

                foreach (var mailSenderType in MailSenderTypes)
                {
                    data.WriteUInt32(mailSenderType);
                }

                data.WriteBits(Name.GetByteCount(), 6);
                data.WriteBit(FirstLogin);
                data.WriteBit(BoostInProgress);
                data.WriteBits(unkWod61x, 5);

                foreach (string str in MailSenders)
                {
                    data.WriteBits(str.GetByteCount() + 1, 6);
                }

                data.FlushBits();

                foreach (string str in MailSenders)
                {
                    if (!str.IsEmpty())
                    {
                        data.WriteCString(str);
                    }
                }

                data.WriteString(Name);
            }
示例#8
0
 public void Write(WorldPacket data)
 {
     data.WriteInt64(EventValue);
     data.WriteInt32(EntryID);
 }
示例#9
0
 public void Write(WorldPacket data)
 {
     data.WriteInt64(StartTime);
     data.WriteUInt32(GarrMssnBonusAbilityID);
 }