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


C# Packet.ToGuid方法代碼示例

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


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

示例1: Handle13022

        public static void Handle13022(Packet packet)
        {
            var guid = packet.StartBitStream(3, 7, 6, 2, 5, 4, 0, 1);

            packet.ParseBitStream(guid, 4, 1, 5, 2);

            packet.ReadInt32("Unk Int32");

            packet.ParseBitStream(guid, 0, 3, 7, 6);

            packet.ToGuid("Unk Guid?", guid);
        }
開發者ID:hodobaj,項目名稱:StrawberryTools,代碼行數:12,代碼來源:TestHandler.cs

示例2: HandleMoveTeleport422

        public static void HandleMoveTeleport422(Packet packet)
        {
            var onTransport = packet.ReadBit("OnTransport");

            var guid = packet.StartBitStream(0, 2, 6, 7, 4, 5, 3, 1);

            var unk2 = packet.ReadBit("Unk Bit Boolean 2");

            packet.ReadVector3("Destination Position");

            packet.ParseBitStream(guid, 5);
            packet.ParseBitStream(guid, 4);

            if (onTransport)
                packet.ReadGuid("Transport Guid");

            packet.ParseBitStream(guid, 2);
            packet.ParseBitStream(guid, 7);

            packet.ReadInt32("Unk 1");

            packet.ParseBitStream(guid, 1, 0, 6, 3);

            if (unk2)
                packet.ReadByte("Unk 2");

            packet.ReadSingle("Arrive Orientation");
            packet.ToGuid("Guid", guid);
        }
開發者ID:skypeak,項目名稱:WowPacketParser_SkyFire,代碼行數:29,代碼來源:MovementHandler.cs

示例3: HandleInspectHonorStats434

        public static void HandleInspectHonorStats434(Packet packet)
        {
            var guid = packet.StartBitStream(4, 3, 6, 2, 5, 0, 7, 1);

            packet.ReadByte("Max Rank");
            packet.ReadInt16("Yesterday"); // Today?
            packet.ReadInt16("Today"); // Yesterday?

            packet.ParseBitStream(guid, 2, 0, 6, 3, 4, 1, 5);

            packet.ReadInt32("Life Time Kills");

            packet.ParseBitStream(guid, 7);

            packet.ToGuid("Guid", guid);
        }
開發者ID:Zakamurite,項目名稱:WowPacketParser,代碼行數:16,代碼來源:MiscellaneousHandler.cs

示例4: HandleMovementSetFacing422

        public static void HandleMovementSetFacing422(Packet packet)
        {
            var info = new MovementInfo();
            var guidBytes = new byte[8];
            var transportGuidBytes = new byte[8];

            info.Flags = packet.ReadEnum<MovementFlag>("Movement Flags", 30);

            guidBytes[4] = (byte)(packet.ReadBit() ? 1 : 0);
            guidBytes[2] = (byte)(packet.ReadBit() ? 1 : 0);

            info.HasSplineData = packet.ReadBit("HasSplineData");

            guidBytes[3] = (byte)(packet.ReadBit() ? 1 : 0);
            guidBytes[5] = (byte)(packet.ReadBit() ? 1 : 0);

            packet.ReadEnum<MovementFlagExtra>("Extra Movement Flags", 12);

            guidBytes[0] = (byte)(packet.ReadBit() ? 1 : 0);
            guidBytes[7] = (byte)(packet.ReadBit() ? 1 : 0);
            guidBytes[6] = (byte)(packet.ReadBit() ? 1 : 0);
            guidBytes[1] = (byte)(packet.ReadBit() ? 1 : 0);

            var splineElevation = packet.ReadBit("HaveSplineElevation");

            var havePitch = packet.ReadBit("HavePitch");
            var haveFallData = packet.ReadBit("HaveFallData");
            var haveFallDirection = false;

            if (haveFallData)
                haveFallDirection = packet.ReadBit("HaveFallDirection");

            var haveTransportData = packet.ReadBit("HaveTransportData");

            var haveTransportTime2 = false;
            var haveTransportTime3 = false;

            if (haveTransportData)
            {
                transportGuidBytes = packet.StartBitStream(0, 6, 2, 5, 4, 1, 3, 7);
                haveTransportTime2 = packet.ReadBit("HaveTransportTime2");
                haveTransportTime3 = packet.ReadBit("HaveTransportTime3");
            }

            info.Orientation = packet.ReadSingle("Orientation");

            packet.ReadUInt32("Timestamp");

            info.Position = packet.ReadVector3("Position");

            packet.ParseBitStream(guidBytes, 7, 5);

            if (splineElevation)
                packet.ReadSingle("Spline Elevation");

            packet.ParseBitStream(guidBytes, 4, 1, 2);

            if (havePitch)
                packet.ReadSingle("Pitch");

            if (haveFallData)
            {
                packet.ReadUInt32("Fall Time");
                packet.ReadSingle("Fall Vertical Speed");
                packet.ReadSingle("Fall Horizontal Speed");

                if (haveFallDirection)
                {
                    packet.ReadSingle("Fall Cos Angle");
                    packet.ReadSingle("Fall Sin Angle");
                }
            }

            packet.ParseBitStream(guidBytes, 6, 0);

            if (haveTransportData)
            {
                packet.ReadByte("Transport Seat");
                packet.ReadSingle("Transport Orientation");
                packet.ReadVector3("Transport Position");

                packet.ReadUInt32("Transport Time");

                if (haveTransportTime2)
                    packet.ReadUInt32("Transport Time 2");

                packet.ParseBitStream(transportGuidBytes, 3, 6);

                if (haveTransportTime3)
                    packet.ReadUInt32("Transport Time 3");

                packet.ParseBitStream(transportGuidBytes, 7, 5, 2, 1, 0, 4);
            }

            packet.ParseBitStream(guidBytes, 3);

            packet.ToGuid("Guid", guidBytes);
            packet.ToGuid("Transport Guid", transportGuidBytes);
        }
開發者ID:skypeak,項目名稱:WowPacketParser_SkyFire,代碼行數:99,代碼來源:MovementHandler.cs

示例5: HandleMovementSetRunSpeed422

 public static void HandleMovementSetRunSpeed422(Packet packet)
 {
     var guid = packet.StartBitStream(1, 0, 7, 5, 2, 4, 3, 6);
     packet.ParseBitStream(guid, 1);
     packet.ReadSingle("Speed");
     packet.ParseBitStream(guid, 6, 2, 3, 7, 4, 0, 5);
     packet.ReadUInt32("Move Event");
     packet.ToGuid("Guid", guid);
 }
開發者ID:skypeak,項目名稱:WowPacketParser_SkyFire,代碼行數:9,代碼來源:MovementHandler.cs

示例6: HandleSplineMovementSetRunSpeed422

 public static void HandleSplineMovementSetRunSpeed422(Packet packet)
 {
     var guid = packet.StartBitStream(7, 2, 1, 3, 5, 6, 4, 0);
     packet.ParseBitStream(guid, 6, 7, 4, 3, 2, 5, 0, 1);
     packet.ReadSingle("Speed");
     packet.ToGuid("Guid", guid);
 }
開發者ID:skypeak,項目名稱:WowPacketParser_SkyFire,代碼行數:7,代碼來源:MovementHandler.cs

示例7: HandleMoveKnockBack422

        public static void HandleMoveKnockBack422(Packet packet)
        {
            var guid = packet.StartBitStream(5, 2, 6, 3, 1, 4, 0, 7);

            packet.ParseBitStream(guid, 0);

            packet.ReadSingle("Jump Velocity");
            packet.ReadUInt32("Fall time");
            packet.ReadSingle("Fall Start Velocity");

            packet.ParseBitStream(guid, 6);

            packet.ReadSingle("Jump Cos");
            packet.ReadSingle("Jump Sin");

            packet.ParseBitStream(guid, 3, 1, 2, 4, 7, 5);

            packet.ToGuid("Guid", guid);
        }
開發者ID:skypeak,項目名稱:WowPacketParser_SkyFire,代碼行數:19,代碼來源:MovementHandler.cs

示例8: HandleItemRequestHotfix422

        public static void HandleItemRequestHotfix422(Packet packet)
        {
            packet.ReadUInt32("Type");
            var count = packet.ReadUInt32("Count");
            var guidBytes = new byte[count][];
            for (var i = 0; i < count; ++i)
                guidBytes[i] = packet.StartBitStream(7, 3, 0, 5, 6, 4, 1, 2);

            for (var i = 0; i < count; ++i)
            {
                packet.ReadUInt32("Entry", i);
                guidBytes[i] = packet.ParseBitStream(guidBytes[i], 2, 6, 3, 0, 5, 7, 1, 4);
                packet.ToGuid("GUID", guidBytes[i], i);
            }
        }
開發者ID:Chaplain,項目名稱:WowPacketParser,代碼行數:15,代碼來源:ItemHandler.cs

示例9: HandleItemRefundResult422

 public static void HandleItemRefundResult422(Packet packet)
 {
     var guid = packet.StartBitStream(5, 0, 3, 7, 4, 1, 6, 2);
     packet.ParseBitStream(guid, 1, 5);
     packet.ReadInt32("Error ID");
     packet.ParseBitStream(guid, 2, 4, 7, 3, 6, 0);
     packet.ToGuid("Item Guid", guid);
 }
開發者ID:hodobaj,項目名稱:StrawberryTools,代碼行數:8,代碼來源:ItemHandler.cs

示例10: HandleGuildRequestMaxDailyXP434

 public static void HandleGuildRequestMaxDailyXP434(Packet packet)
 {
     var guid = packet.StartBitStream(0, 3, 5, 1, 4, 6, 7, 2);
     packet.ParseBitStream(guid, 7, 4, 3, 5, 1, 2, 6, 0);
     packet.ToGuid("GUID", guid);
 }
開發者ID:Zakamurite,項目名稱:WowPacketParser,代碼行數:6,代碼來源:GuildHandler.cs

示例11: HandleGuildQueryNews434

 public static void HandleGuildQueryNews434(Packet packet)
 {
     var guid = packet.StartBitStream(4, 2, 6, 3, 5, 0, 1, 7);
     packet.ParseBitStream(guid, 4, 1, 5, 6, 0, 3, 7, 2);
     packet.ToGuid("GUID", guid);
 }
開發者ID:Zakamurite,項目名稱:WowPacketParser,代碼行數:6,代碼來源:GuildHandler.cs

示例12: HandleGuildQueryGuildXP434

 public static void HandleGuildQueryGuildXP434(Packet packet)
 {
     var guid = packet.StartBitStream(2, 1, 0, 5, 4, 7, 6, 3);
     packet.ParseBitStream(guid, 7, 2, 3, 6, 1, 5, 0, 4);
     packet.ToGuid("GUID", guid);
 }
開發者ID:Zakamurite,項目名稱:WowPacketParser,代碼行數:6,代碼來源:GuildHandler.cs


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