ReadSandboxScalingData() public static method

public static ReadSandboxScalingData ( WowPacketParser.Misc.Packet packet ) : void
packet WowPacketParser.Misc.Packet
return void
Exemplo n.º 1
0
        public static void ReadPeriodicAuraLogEffectData(Packet packet, params object[] idx)
        {
            packet.ReadInt32("Effect", idx);
            packet.ReadInt32("Amount", idx);
            packet.ReadInt32("OverHealOrKill", idx);
            packet.ReadInt32("SchoolMaskOrPower", idx);
            packet.ReadInt32("AbsorbedOrAmplitude", idx);
            packet.ReadInt32("Resisted", idx);

            packet.ResetBitReader();

            packet.ReadBit("Crit", idx);
            var hasDebugData      = packet.ReadBit("HasPeriodicAuraLogEffectDebugInfo", idx);
            var hasSandboxScaling = packet.ReadBit("HasSandboxScaling", idx);

            if (hasSandboxScaling)
            {
                SpellHandler.ReadSandboxScalingData(packet, idx, "SandboxScalingData");
            }

            if (hasDebugData)
            {
                packet.ReadSingle("CritRollMade", idx);
                packet.ReadSingle("CritRollNeeded", idx);
            }
        }
Exemplo n.º 2
0
        public static void HandleSpellNonMeleeDmgLog(Packet packet)
        {
            packet.ReadPackedGuid128("Me");
            packet.ReadPackedGuid128("CasterGUID");
            packet.ReadPackedGuid128("CastID");

            packet.ReadInt32 <SpellId>("SpellID");
            if (ClientVersion.AddedInVersion(ClientVersionBuild.V7_2_0_23826))
            {
                packet.ReadInt32("SpellXSpellVisualID");
            }
            packet.ReadInt32("Damage");
            packet.ReadInt32("OverKill");

            packet.ReadByte("SchoolMask");

            packet.ReadInt32("Absorbed");
            packet.ReadInt32("Resisted");
            packet.ReadInt32("ShieldBlock");

            packet.ResetBitReader();

            packet.ReadBit("Periodic");

            packet.ReadBitsE <AttackerStateFlags>("Flags", 7);

            var hasDebugData      = packet.ReadBit("HasDebugData");
            var hasLogData        = packet.ReadBit("HasLogData");
            var hasSandboxScaling = packet.ReadBit("HasSandboxScaling");

            if (ClientVersion.AddedInVersion(ClientVersionBuild.V7_2_0_23826))
            {
                if (hasLogData)
                {
                    SpellHandler.ReadSpellCastLogData(packet, "SpellCastLogData");
                }

                if (hasDebugData)
                {
                    ReadSpellNonMeleeDebugData(packet, "DebugData");
                }
            }
            else
            {
                if (hasDebugData)
                {
                    ReadSpellNonMeleeDebugData(packet, "DebugData");
                }

                if (hasLogData)
                {
                    SpellHandler.ReadSpellCastLogData(packet, "SpellCastLogData");
                }
            }

            if (hasSandboxScaling)
            {
                SpellHandler.ReadSandboxScalingData(packet, "SandboxScalingData");
            }
        }
Exemplo n.º 3
0
        public static void HandleSpellHealLog(Packet packet)
        {
            packet.ReadPackedGuid128("TargetGUID");
            packet.ReadPackedGuid128("CasterGUID");

            packet.ReadInt32 <SpellId>("SpellID");
            packet.ReadInt32("Health");
            packet.ReadInt32("OverHeal");
            packet.ReadInt32("Absorbed");

            packet.ResetBitReader();

            packet.ReadBit("Crit");
            var hasCritRollMade   = packet.ReadBit("HasCritRollMade");
            var hasCritRollNeeded = packet.ReadBit("HasCritRollNeeded");
            var hasLogData        = packet.ReadBit("HasLogData");
            var hasSandboxScaling = packet.ReadBit("HasLogData");

            if (ClientVersion.AddedInVersion(ClientVersionBuild.V7_2_0_23826))
            {
                if (hasLogData)
                {
                    SpellHandler.ReadSpellCastLogData(packet);
                }
            }

            if (hasCritRollMade)
            {
                packet.ReadSingle("CritRollMade");
            }

            if (hasCritRollNeeded)
            {
                packet.ReadSingle("CritRollNeeded");
            }

            if (ClientVersion.RemovedInVersion(ClientVersionBuild.V7_2_0_23826))
            {
                if (hasLogData)
                {
                    SpellHandler.ReadSpellCastLogData(packet);
                }
            }

            if (hasSandboxScaling)
            {
                SpellHandler.ReadSandboxScalingData(packet, "SandboxScalingData");
            }
        }