当前位置: 首页>>代码示例>>C#>>正文


C# Packet.ReadInt32Visible方法代码示例

本文整理汇总了C#中WowPacketParser.Misc.Packet.ReadInt32Visible方法的典型用法代码示例。如果您正苦于以下问题:C# Packet.ReadInt32Visible方法的具体用法?C# Packet.ReadInt32Visible怎么用?C# Packet.ReadInt32Visible使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在WowPacketParser.Misc.Packet的用法示例。


在下文中一共展示了Packet.ReadInt32Visible方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: HandleSUnk0364

 public static void HandleSUnk0364(Packet packet)
 {
     var count = packet.ReadBits("Count", 22);
     for (var i = 0; i < count; i++)
         packet.ReadInt32Visible("Unk20", i);
 }
开发者ID:samaelsacred,项目名称:WowPacketParser,代码行数:6,代码来源:UnkHandler.cs

示例2: HandleSUnk0170

 public static void HandleSUnk0170(Packet packet)
 {
     var count = packet.ReadBits("Count", 19);
     for (var i = 0; i < count; i++)
         packet.ReadBitVisible("unk20", i);
     for (var i = 0; i < count; i++)
     {
         packet.ReadInt32Visible("unk28", i);
         packet.ReadInt32Visible("unk36", i);
         packet.ReadInt32Visible("unk24", i);
         packet.ReadInt32Visible("unk20", i);
         packet.ReadInt32Visible("unk32", i);
     }
 }
开发者ID:samaelsacred,项目名称:WowPacketParser,代码行数:14,代码来源:UnkHandler.cs

示例3: HandleAuraUpdate

        public static void HandleAuraUpdate(Packet packet)
        {
            var guid = new byte[8];
            guid[7] = packet.ReadBit();
            var unk40 = packet.ReadBit("unk40");
            var count = packet.ReadBits("count", 24);
            guid[6] = packet.ReadBit();
            guid[1] = packet.ReadBit();
            guid[3] = packet.ReadBit();
            guid[0] = packet.ReadBit();
            guid[4] = packet.ReadBit();
            guid[2] = packet.ReadBit();
            guid[5] = packet.ReadBit();

            var guid2 = new byte[count][];
            var unk164 = new byte[count];
            var unk156 = new byte[count];
            var unk336 = new uint[count];
            var unk144 = new byte[count];
            var unk400 = new uint[count];
            var unk200 = new byte[count];
            for (var i = 0 ; i < count; i++)
            {
                unk200[i] = packet.ReadBitVisible("unk200", i);
                if (unk200[i] > 0)
                {
                    unk336[i] = packet.ReadBits("unk336", 22, i);
                    unk144[i] = packet.ReadBitVisible("unk144", i);
                    if (unk144[i] > 0)
                        guid2[i] = packet.StartBitStream(3, 4, 6, 1, 5, 2, 0, 7);

                    unk400[i] = packet.ReadBits("unk400", 22, i);
                    unk164[i] = packet.ReadBitVisible("unk164", i);
                    unk156[i] = packet.ReadBitVisible("unk156", i);
                }
            }
            for (var i = 0; i < count; i++)
            {
                if (unk200[i] > 0)
                {
                    if (unk144[i] > 0)
                    {
                        packet.ParseBitStream(guid2[i], 3, 2, 1, 6, 4, 0, 5, 7);
                        packet.WriteGuid("Guid2", guid2[i], i);
                    }
                    packet.ReadByteVisible("unk124", i);
                    packet.ReadInt16("unk152", i);
                    packet.ReadInt32Visible("unk144", i);
                    if (unk156[i] > 0)
                        packet.ReadInt32("unk272", i);
                    if (unk164[i] > 0)
                        packet.ReadInt32("unk304", i);
                    for (var j = 0; j < unk400[i]; j++)
                        packet.ReadSingle("unk416", i, j);
                    packet.ReadByteVisible("unk134", i);
                    packet.ReadInt32Visible("unk176", i);
                    for (var j = 0; j < unk336[i]; j++)
                        packet.ReadSingle("unk352", i, j);
                }
                packet.ReadByte("unk112", i);
            }
            packet.ParseBitStream(guid, 2, 6, 7, 1, 3, 4, 0, 5);
            packet.WriteGuid("Guid", guid);
        }
开发者ID:samaelsacred,项目名称:WowPacketParser,代码行数:64,代码来源:SpellHandler.cs

示例4: HandleUnk0A8B

 public static void HandleUnk0A8B(Packet packet)
 {
     var hasData = !packet.ReadBit("!hasData");
     var count = packet.ReadBits("count", 24);
     packet.ReadInt32("unk20");
     packet.ReadByte("unk40");
     if (hasData)
     {
         packet.ReadInt32Visible("unk16");
     }
     for (var i = 0; i < count; i++)
     {
         packet.ReadByteVisible("unkb28", i);
     }
     packet.ReadByte("unk41");
 }
开发者ID:samaelsacred,项目名称:WowPacketParser,代码行数:16,代码来源:MiscellaneousHandler.cs

示例5: HandleClearQuestCompletedBits

 public static void HandleClearQuestCompletedBits(Packet packet)
 {
     var count = packet.ReadBits("Count", 22);
     for (var i = 0; i < count; i++)
         packet.ReadInt32Visible("QuestID", i);
 }
开发者ID:ChipLeo,项目名称:WowPacketParser,代码行数:6,代码来源:QuestHandler.cs


注:本文中的WowPacketParser.Misc.Packet.ReadInt32Visible方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。