當前位置: 首頁>>代碼示例>>C#>>正文


C# Packet.ReadBitVisible方法代碼示例

本文整理匯總了C#中WowPacketParser.Misc.Packet.ReadBitVisible方法的典型用法代碼示例。如果您正苦於以下問題:C# Packet.ReadBitVisible方法的具體用法?C# Packet.ReadBitVisible怎麽用?C# Packet.ReadBitVisible使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在WowPacketParser.Misc.Packet的用法示例。


在下文中一共展示了Packet.ReadBitVisible方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: 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

示例2: HandleFactionBonusInfo

 public static void HandleFactionBonusInfo(Packet packet)
 {
     for (var i = 0; i < 256; i++)
         packet.ReadBitVisible("Byte16", i);
 }
開發者ID:ChipLeo,項目名稱:WowPacketParser,代碼行數:5,代碼來源:MiscellaneousHandler.cs

示例3: HandleUnk0A0B

 public static void HandleUnk0A0B(Packet packet)
 {
     for (var i = 0; i < 256; i++)
         packet.ReadBitVisible("Byte16", i);
 }
開發者ID:samaelsacred,項目名稱:WowPacketParser,代碼行數:5,代碼來源:MiscellaneousHandler.cs

示例4: 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


注:本文中的WowPacketParser.Misc.Packet.ReadBitVisible方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。