示例#1
0
 public void Write(WorldPacket data)
 {
     data.WritePackedGuid(Guid);
     data.WriteUInt32(RolesDesired);
     data.WriteUInt8(Level);
     data.WriteBit(RoleCheckComplete);
     data.FlushBits();
 }
 public void Write(WorldPacket data)
 {
     data.WriteUInt32(Index);
     data.WriteUInt32(AzeriteEssenceID);
     data.WriteUInt32(Rank);
     data.WriteBit(SlotUnlocked);
     data.FlushBits();
 }
示例#3
0
 public void Write(WorldPacket data)
 {
     data.WriteInt32(RewardItem);
     data.WriteUInt32(RewardItemQuantity);
     data.WriteInt32(BonusCurrency);
     data.WriteBit(IsCurrency);
     data.FlushBits();
 }
示例#4
0
 public void Write(WorldPacket data)
 {
     data.WritePackedGuid(Pet.Guid.IsEmpty() ? ObjectGuid.Create(HighGuid.BattlePet, 0) : Pet.Guid);
     data.WriteUInt32(CollarID);
     data.WriteUInt8(Index);
     data.WriteBit(Locked);
     data.FlushBits();
 }
示例#5
0
 public void Write(WorldPacket data)
 {
     data.WriteInt32(RaceID);
     data.WriteBit(HasExpansion);
     data.WriteBit(HasAchievement);
     data.WriteBit(HasHeritageArmor);
     data.FlushBits();
 }
示例#6
0
 public void Write(WorldPacket data)
 {
     data.WriteInt32(ChallengeModeID);
     data.WriteFloat(MapScore);
     data.WriteInt32(BestRunLevel);
     data.WriteInt32(BestRunDurationMS);
     data.WriteBit(FinishedSuccess);
     data.FlushBits();
 }
示例#7
0
        public void Write(WorldPacket data)
        {
            data.WriteUInt32(Flags);
            data.WriteUInt8(AnimTier);
            data.WriteUInt32(TierTransStartTime);
            data.WriteInt32(Elapsed);
            data.WriteUInt32(MoveTime);
            data.WriteFloat(JumpGravity);
            data.WriteUInt32(SpecialTime);
            data.WriteUInt8(Mode);
            data.WriteUInt8(VehicleExitVoluntary);
            data.WritePackedGuid(TransportGUID);
            data.WriteInt8(VehicleSeat);
            data.WriteBits((byte)Face, 2);
            data.WriteBits(Points.Count, 16);
            data.WriteBits(PackedDeltas.Count, 16);
            data.WriteBit(SplineFilter.HasValue);
            data.WriteBit(SpellEffectExtraData.HasValue);
            data.FlushBits();

            if (SplineFilter.HasValue)
            {
                SplineFilter.Value.Write(data);
            }

            switch (Face)
            {
            case MonsterMoveType.FacingSpot:
                data.WriteVector3(FaceSpot);
                break;

            case MonsterMoveType.FacingTarget:
                data.WriteFloat(FaceDirection);
                data.WritePackedGuid(FaceGUID);
                break;

            case MonsterMoveType.FacingAngle:
                data.WriteFloat(FaceDirection);
                break;
            }

            foreach (Vector3 pos in Points)
            {
                data.WriteVector3(pos);
            }

            foreach (Vector3 pos in PackedDeltas)
            {
                data.WritePackXYZ(pos);
            }

            if (SpellEffectExtraData.HasValue)
            {
                SpellEffectExtraData.Value.Write(data);
            }
        }
示例#8
0
        public void Write(WorldPacket data)
        {
            data.WriteUInt32(Mask);
            data.WriteUInt32(RewardMoney);
            data.WriteUInt32(RewardXP);
            data.WriteInt32(Item.Count);
            data.WriteInt32(Currency.Count);
            data.WriteInt32(BonusCurrency.Count);

            // Item
            foreach (var item in Item)
            {
                data.WriteUInt32(item.ItemID);
                data.WriteUInt32(item.Quantity);
            }

            // Currency
            foreach (var currency in Currency)
            {
                data.WriteUInt32(currency.CurrencyID);
                data.WriteUInt32(currency.Quantity);
            }

            // BonusCurrency
            foreach (var bonusCurrency in BonusCurrency)
            {
                data.WriteUInt32(bonusCurrency.CurrencyID);
                data.WriteUInt32(bonusCurrency.Quantity);
            }

            data.WriteBit(RewardSpellID.HasValue);
            data.WriteBit(Unused1.HasValue);
            data.WriteBit(Unused2.HasValue);
            data.WriteBit(Honor.HasValue);
            data.FlushBits();

            if (RewardSpellID.HasValue)
            {
                data.WriteInt32(RewardSpellID.Value);
            }

            if (Unused1.HasValue)
            {
                data.WriteInt32(Unused1.Value);
            }

            if (Unused2.HasValue)
            {
                data.WriteUInt64(Unused2.Value);
            }

            if (Honor.HasValue)
            {
                data.WriteInt32(Honor.Value);
            }
        }
示例#9
0
 public void Write(WorldPacket data)
 {
     data.WriteUInt32(Roles);
     data.WriteBit(Me);
     data.WriteBit(SameParty);
     data.WriteBit(MyParty);
     data.WriteBit(Responded);
     data.WriteBit(Accepted);
     data.FlushBits();
 }
示例#10
0
        public void Write(WorldPacket data)
        {
            data.WriteBits(Values.Count, 6);
            data.FlushBits();

            foreach (ItemMod itemMod in Values)
            {
                itemMod.Write(data);
            }
        }
示例#11
0
 public void Write(WorldPacket data)
 {
     data.WriteUInt32(GarrPlotInstanceID);
     data.WriteUInt32(GarrBuildingID);
     data.WriteUInt32((uint)TimeBuilt);
     data.WriteUInt32(CurrentGarSpecID);
     data.WriteUInt32((uint)TimeSpecCooldown);
     data.WriteBit(Active);
     data.FlushBits();
 }
示例#12
0
 public void Write(WorldPacket data)
 {
     data.WritePackedGuid(ID);
     data.WriteVector3(Origin);
     data.WriteVector3(Direction);
     data.WriteUInt32(TransportID);
     data.WriteFloat(Magnitude);
     data.WriteBits(Type, 2);
     data.FlushBits();
 }
示例#13
0
            public void Write(WorldPacket data)
            {
                data.WriteUInt32(ID);
                data.WriteUInt32(NextPageID);
                data.WriteInt32(PlayerConditionID);
                data.WriteUInt8(Flags);
                data.WriteBits(Text.Length, 12);
                data.FlushBits();

                data.WriteString(Text);
            }
示例#14
0
 public void Write(WorldPacket data)
 {
     data.WriteUInt32(Id);
     data.WriteUInt64(Quantity);
     data.WritePackedGuid(Player);
     data.WritePackedTime(Date);
     data.WriteUInt32(TimeFromStart);
     data.WriteUInt32(TimeFromCreate);
     data.WriteBits(Flags, 4);
     data.FlushBits();
 }
示例#15
0
        public void Write(WorldPacket data)
        {
            data.WritePackedGuid(Victim);
            data.WriteUInt8(MissReason);
            if (data.WriteBit(Debug.HasValue))
            {
                Debug.Value.Write(data);
            }

            data.FlushBits();
        }
示例#16
0
 public void Write(WorldPacket data)
 {
     data.WriteBits(Type, 2);
     data.WriteBits(UIType, 3);
     data.WriteBit(CanTradeToTapList);
     data.FlushBits();
     Loot.Write(data); // WorldPackets::Item::ItemInstance
     data.WriteUInt32(Quantity);
     data.WriteUInt8(LootItemType);
     data.WriteUInt8(LootListID);
 }
示例#17
0
        public void Write(WorldPacket data)
        {
            data.WriteUInt32(ChoiceItemCount);

            for (int i = 0; i < SharedConst.QuestRewardChoicesCount; ++i)
            {
                data.WriteUInt32(ChoiceItems[i].ItemID);
                data.WriteUInt32(ChoiceItems[i].Quantity);
            }

            data.WriteUInt32(ItemCount);

            for (int i = 0; i < SharedConst.QuestRewardItemCount; ++i)
            {
                data.WriteUInt32(ItemID[i]);
                data.WriteUInt32(ItemQty[i]);
            }

            data.WriteUInt32(Money);
            data.WriteUInt32(XP);
            data.WriteUInt64(ArtifactXP);
            data.WriteUInt32(ArtifactCategoryID);
            data.WriteUInt32(Honor);
            data.WriteUInt32(Title);
            data.WriteUInt32(FactionFlags);

            for (int i = 0; i < SharedConst.QuestRewardReputationsCount; ++i)
            {
                data.WriteUInt32(FactionID[i]);
                data.WriteInt32(FactionValue[i]);
                data.WriteInt32(FactionOverride[i]);
                data.WriteInt32(FactionCapIn[i]);
            }

            foreach (var id in SpellCompletionDisplayID)
            {
                data.WriteInt32(id);
            }

            data.WriteUInt32(SpellCompletionID);

            for (int i = 0; i < SharedConst.QuestRewardCurrencyCount; ++i)
            {
                data.WriteUInt32(CurrencyID[i]);
                data.WriteUInt32(CurrencyQty[i]);
            }

            data.WriteUInt32(SkillLineID);
            data.WriteUInt32(NumSkillUps);
            data.WriteInt32(RewardID);

            data.WriteBit(IsBoostSpell);
            data.FlushBits();
        }
示例#18
0
        public void Write(WorldPacket data)
        {
            data.WriteBit(IsLocal);
            data.WriteBit(IsInternalRealm);
            data.WriteBits(RealmNameActual.GetByteCount(), 8);
            data.WriteBits(RealmNameNormalized.GetByteCount(), 8);
            data.FlushBits();

            data.WriteString(RealmNameActual);
            data.WriteString(RealmNameNormalized);
        }
示例#19
0
        public void Write(WorldPacket data)
        {
            data.WriteUInt32(MapID);
            data.WriteUInt32(DifficultyID);
            data.WriteUInt64(InstanceID);
            data.WriteUInt32(TimeRemaining);
            data.WriteUInt32(CompletedMask);

            data.WriteBit(Locked);
            data.WriteBit(Extended);
            data.FlushBits();
        }
示例#20
0
            public void Write(WorldPacket data)
            {
                data.WritePackedGuid(PlayerGUID);
                data.WriteUInt32(Kills);
                data.WriteUInt32(DamageDone);
                data.WriteUInt32(HealingDone);
                data.WriteInt32(Stats.Count);
                data.WriteInt32(PrimaryTalentTree);
                data.WriteInt32(Sex);
                data.WriteUInt32((uint)PlayerRace);
                data.WriteInt32(PlayerClass);
                data.WriteInt32(CreatureID);
                data.WriteInt32(HonorLevel);

                foreach (var pvpStat in Stats)
                {
                    pvpStat.Write(data);
                }

                data.WriteBit(Faction);
                data.WriteBit(IsInWorld);
                data.WriteBit(Honor.HasValue);
                data.WriteBit(PreMatchRating.HasValue);
                data.WriteBit(RatingChange.HasValue);
                data.WriteBit(PreMatchMMR.HasValue);
                data.WriteBit(MmrChange.HasValue);
                data.FlushBits();

                if (Honor.HasValue)
                {
                    Honor.Value.Write(data);
                }

                if (PreMatchRating.HasValue)
                {
                    data.WriteUInt32(PreMatchRating.Value);
                }

                if (RatingChange.HasValue)
                {
                    data.WriteInt32(RatingChange.Value);
                }

                if (PreMatchMMR.HasValue)
                {
                    data.WriteUInt32(PreMatchMMR.Value);
                }

                if (MmrChange.HasValue)
                {
                    data.WriteInt32(MmrChange.Value);
                }
            }
示例#21
0
 public void Write(WorldPacket data)
 {
     Ticket.Write(data);
     data.WriteUInt64(QueueID);
     data.WriteUInt8(RangeMin);
     data.WriteUInt8(RangeMax);
     data.WriteUInt8(TeamSize);
     data.WriteUInt32(InstanceID);
     data.WriteBit(RegisteredMatch);
     data.WriteBit(TournamentRules);
     data.FlushBits();
 }
示例#22
0
            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.WriteUInt8(SkinId);
                data.WriteUInt8(FaceId);
                data.WriteUInt8(HairStyle);
                data.WriteUInt8(HairColor);
                data.WriteUInt8(FacialHair);

                foreach (var display in CustomDisplay)
                {
                    data.WriteUInt8(display);
                }

                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.WriteUInt32(LastPlayedTime);
                data.WriteUInt16(SpecID);
                data.WriteUInt32(Unknown703);
                data.WriteUInt32(LastLoginVersion);
                data.WriteUInt32(Flags4);
                data.WriteBits(Name.GetByteCount(), 6);
                data.WriteBit(FirstLogin);
                data.WriteBit(BoostInProgress);
                data.WriteBits(unkWod61x, 5);
                data.FlushBits();

                data.WriteString(Name);
            }
示例#23
0
        public void Write(WorldPacket data)
        {
            data.WriteUInt32(TimeToTarget);
            data.WriteUInt32(ElapsedTimeForMovement);

            data.WriteBits(Points.Count, 16);
            data.FlushBits();

            foreach (Vector3 point in Points)
            {
                data.WriteVector3(point);
            }
        }
示例#24
0
        public void Write(WorldPacket data)
        {
            data.WritePackedGuid(GUID);
            data.WriteInt32(ModelId);
            data.WriteInt32(CurrentHealth);
            data.WriteInt32(MaxHealth);
            data.WriteUInt32(Auras.Count);
            Auras.ForEach(p => p.Write(data));

            data.WriteBits(Name.GetByteCount(), 8);
            data.FlushBits();
            data.WriteString(Name);
        }
示例#25
0
        public void Write(WorldPacket data)
        {
            data.WriteInt32(FilterKeys.Count);
            data.WriteFloat(BaseSpeed);
            data.WriteInt16(StartOffset);
            data.WriteFloat(DistToPrevFilterKey);
            data.WriteInt16(AddedToStart);

            FilterKeys.ForEach(p => p.Write(data));

            data.WriteBits(FilterFlags, 2);
            data.FlushBits();
        }
示例#26
0
        public void Write(WorldPacket data)
        {
            data.WriteUInt64(EventID);
            data.WriteUInt8((byte)EventType);
            data.WritePackedTime(Date);
            data.WriteUInt32((uint)Flags);
            data.WriteInt32(TextureID);
            data.WriteUInt64(EventClubID);
            data.WritePackedGuid(OwnerGuid);

            data.WriteBits(EventName.GetByteCount(), 8);
            data.FlushBits();
            data.WriteString(EventName);
        }
示例#27
0
        public void Write(WorldPacket data)
        {
            data.WriteUInt32(ItemID);

            data.WriteBit(ItemBonus.HasValue);
            data.FlushBits();

            Modifications.Write(data);

            if (ItemBonus.HasValue)
            {
                ItemBonus.Value.Write(data);
            }
        }
示例#28
0
 public void Write(WorldPacket data)
 {
     data.WriteUInt32(MuID);
     data.WriteInt32(Type);
     data.WriteInt32(Quantity);
     data.WriteUInt64(Price);
     data.WriteInt32(Durability);
     data.WriteInt32(StackCount);
     data.WriteInt32(ExtendedCostID);
     data.WriteInt32(PlayerConditionFailed);
     Item.Write(data);
     data.WriteBit(DoNotFilterOnVendor);
     data.FlushBits();
 }
示例#29
0
        public void Write(WorldPacket data)
        {
            PlayerData.Write(data);

            data.WritePackedGuid(GuildGUID);
            data.WriteUInt32(GuildVirtualRealmAddress);
            data.WriteInt32(AreaID);

            data.WriteBits(GuildName.GetByteCount(), 7);
            data.WriteBit(IsGM);
            data.WriteString(GuildName);

            data.FlushBits();
        }
示例#30
0
 public void Write(WorldPacket data)
 {
     data.WriteUInt8(MyFlags);
     data.WriteUInt32(Slot);
     data.WriteUInt32(MyRandomSlot);
     data.WriteUInt8(MyPartialClear);
     data.WriteFloat(MyGearDiff);
     data.WriteUInt8(MyStrangerCount);
     data.WriteUInt8(MyKickVoteCount);
     data.WriteUInt8(BootCount);
     data.WriteBit(Aborted);
     data.WriteBit(MyFirstReward);
     data.FlushBits();
 }