当前位置: 首页>>代码示例>>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;未经允许,请勿转载。