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


C# Packet.ReadPackedTime方法代码示例

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


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

示例1: HandleGameTimeUpdate

 public static void HandleGameTimeUpdate(Packet packet)
 {
     packet.ReadPackedTime("ServerTime");
     packet.ReadPackedTime("GameTime");
     packet.ReadInt32("ServerTimeHolidayOffset");
     packet.ReadInt32("GameTimeHolidayOffset");
 }
开发者ID:cyberbrest,项目名称:WowPacketParser,代码行数:7,代码来源:MovementHandler.cs

示例2: HandleAddCalendarEvent

        public static void HandleAddCalendarEvent(Packet packet)
        {
            packet.ReadCString("Title");
            packet.ReadCString("Description");
            packet.ReadEnum<CalendarEventType>("Event Type", TypeCode.Byte);
            packet.ReadEnum<CalendarRepeatType>("Repeat Type", TypeCode.Byte);
            packet.ReadInt32("Max Invites");
            packet.ReadEntryWithName<Int32>(StoreNameType.LFGDungeon, "Dungeon ID");
            packet.ReadPackedTime("Event Time");
            packet.ReadPackedTime("Unk PackedTime");

            var flags = packet.ReadEnum<CalendarFlag>("Event Flags", TypeCode.Int32);

            if ((flags & CalendarFlag.GuildAnnouncement) != 0)
                return;

            var count = packet.ReadInt32("Invite Count");

            for (var i = 0; i < count; i++)
            {
                packet.ReadPackedGuid("Creator GUID");
                packet.ReadEnum<CalendarEventStatus>("Status", TypeCode.Byte);
                packet.ReadEnum<CalendarModerationRank>("Moderation Rank", TypeCode.Byte);
            }
        }
开发者ID:Nihilianth,项目名称:WowPacketParser,代码行数:25,代码来源:CalendarHandler.cs

示例3: HandleGuildAchievementData

        public static void HandleGuildAchievementData(Packet packet)
        {
            var count = packet.ReadBits("Criteria count", 20);

            var guid = new byte[count][];

            for (var i = 0; i < count; ++i)
            {
                guid[i] = new byte[8];
                packet.StartBitStream(guid[i], 3, 5, 4, 7, 2, 1, 0, 6);
            }

            for (var i = 0; i < count; ++i)
            {
                packet.ReadXORByte(guid[i], 2);
                packet.ReadXORByte(guid[i], 7);
                packet.ReadInt32("Unk 1", i);
                packet.ReadXORByte(guid[i], 5);
                packet.ReadXORByte(guid[i], 3);
                packet.ReadXORByte(guid[i], 1);
                packet.ReadInt32<AchievementId>("Achievement Id", i);
                packet.ReadXORByte(guid[i], 6);
                packet.ReadInt32("Unk 2", i);
                packet.ReadXORByte(guid[i], 4);
                packet.ReadXORByte(guid[i], 0);
                packet.ReadPackedTime("Time", i);
                packet.WriteGuid("Guid", guid[i], i);
            }
        }
开发者ID:Oboltys,项目名称:WowPacketParser,代码行数:29,代码来源:GuildHandler.cs

示例4: HandleAchievementEarned

 public static void HandleAchievementEarned(Packet packet)
 {
     packet.ReadPackedGuid("Player GUID");
     packet.ReadInt32("Achievement");
     packet.ReadPackedTime("Time");
     packet.ReadInt32("Unk Int32");
 }
开发者ID:hodobaj,项目名称:StrawberryTools,代码行数:7,代码来源:AchievementHandler.cs

示例5: HandleAllAchievementData406

        public static void HandleAllAchievementData406(Packet packet)
        {
            var achievements = packet.ReadUInt32("Achievement count");
            var criterias = packet.ReadUInt32("Criterias count");

            for (var i = 0; i < achievements; ++i)
                packet.ReadUInt32("Achievement Id", i);

            for (var i = 0; i < achievements; ++i)
                packet.ReadPackedTime("Achievement Time", i);

            for (var i = 0; i < criterias; ++i)
                packet.ReadUInt64("Counter", i);

            for (var i = 0; i < criterias; ++i)
                packet.ReadUInt32("Criteria Timer 1", i);

            for (var i = 0; i < criterias; ++i)
                packet.ReadPackedTime("Criteria Time", i);

            for (var i = 0; i < criterias; ++i)
                packet.ReadGuid("Player GUID", i);

            for (var i = 0; i < criterias; ++i)
                packet.ReadUInt32("Criteria Timer 2", i);

            for (var i = 0; i < criterias; ++i)
                packet.ReadBits("Flag", 2, i);

            for (var i = 0; i < criterias; ++i)
                packet.ReadUInt32("Criteria Id", i);
        }
开发者ID:samaelsacred,项目名称:WowPacketParser,代码行数:32,代码来源:AchievementHandler.cs

示例6: HandleGameTimeUpdate

 public static void HandleGameTimeUpdate(Packet packet)
 {
     packet.ReadPackedTime("Int28"); // 28
     packet.ReadPackedTime("Int16"); // 16
     packet.ReadInt32("Int20"); // 20
     packet.ReadInt32("Int24"); // 24
 }
开发者ID:ChipLeo,项目名称:WowPacketParser,代码行数:7,代码来源:TimeHandler.cs

示例7: HandleAllAchievementData422

        public static void HandleAllAchievementData422(Packet packet)
        {
            var count1 = packet.ReadUInt32("Count1");
            for (var i = 0; i < count1; ++i)
                packet.ReadBits("Flag", 2, 0, i);

            for (var i = 0; i < count1; ++i)
                packet.ReadUInt64("Counter", 0, i);

            var count2 = packet.ReadUInt32("Count2");
            for (var i = 0; i < count2; ++i)
                packet.ReadPackedTime("Achievement Time", 1, i);

            for (var i = 0; i < count1; ++i)
                packet.ReadGuid("Player GUID", 0, i);

            for (var i = 0; i < count1; ++i)
                packet.ReadPackedTime("Criteria Time", 0, i);

            for (var i = 0; i < count1; ++i)
                packet.ReadUInt32("Timer 1", 0, i);

            for (var i = 0; i < count2; ++i)
                packet.ReadUInt32("Achievement Id", 1, i);

            for (var i = 0; i < count1; ++i)
                packet.ReadUInt32("Criteria Id", 0, i);

            for (var i = 0; i < count1; ++i)
                packet.ReadUInt32("Timer 2", 0, i);
        }
开发者ID:hodobaj,项目名称:StrawberryTools,代码行数:31,代码来源:AchievementHandler.cs

示例8: HandleGameTimeUpdate

 public static void HandleGameTimeUpdate(Packet packet)
 {
     packet.ReadInt32("Unk dword16");
     packet.ReadInt32("Unk dword28");
     packet.ReadPackedTime("Time 1");
     packet.ReadPackedTime("New Time");
 }
开发者ID:ChipLeo,项目名称:WowPacketParser,代码行数:7,代码来源:TimeHandler.cs

示例9: HandleGameTimeSet

 public static void HandleGameTimeSet(Packet packet)
 {
     packet.ReadPackedTime("Time 1");
     packet.ReadPackedTime("New Time");
     packet.ReadInt32("Unk dword24");
     packet.ReadInt32("Unk dword20");
 }
开发者ID:ChipLeo,项目名称:WowPacketParser,代码行数:7,代码来源:TimeHandler.cs

示例10: HandleLoginSetTimeSpeed

 public static void HandleLoginSetTimeSpeed(Packet packet)
 {
     packet.ReadInt32("unk32");
     packet.ReadPackedTime("Time1");
     packet.ReadInt32("unk20");
     packet.ReadPackedTime("Time2");
     packet.ReadSingle("unk28");
 }
开发者ID:ChipLeo,项目名称:WowPacketParser,代码行数:8,代码来源:TimeHandler.cs

示例11: HandleLoginSetTimeSpeed

 public static void HandleLoginSetTimeSpeed(Packet packet)
 {
     packet.ReadPackedTime("ServerTime");
     packet.ReadPackedTime("GameTime");
     packet.ReadSingle("NewSpeed");
     packet.ReadInt32("ServerTimeHolidayOffset");
     packet.ReadInt32("GameTimeHolidayOffset");
 }
开发者ID:cyberbrest,项目名称:WowPacketParser,代码行数:8,代码来源:MovementHandler.cs

示例12: HandleLoginSetTimeSpeed

 public static void HandleLoginSetTimeSpeed(Packet packet)
 {
     packet.ReadPackedTime("Server Current Time");
     packet.ReadSingle("Game Speed");
     packet.ReadInt32("Unk dword32");
     packet.ReadInt32("Unk dword24");
     packet.ReadPackedTime("Time 1");
 }
开发者ID:Nihilianth,项目名称:WowPacketParser,代码行数:8,代码来源:TimeHandler.cs

示例13: Handle41694

        public static void Handle41694(Packet packet)
        {
            var count = packet.ReadInt32("Count");

            for (var i = 0; i < count; i++)
                packet.ReadInt32("Unk");

            for (var i = 0; i < count; i++)
                packet.ReadGuid("Unk");

            for (var i = 0; i < count; i++)
            {
                var count2 = packet.ReadInt32("Unk");

                for (var j = 0; j < count2; j++)
                    packet.ReadInt64("Unk");
            }

            for (var i = 0; i < count; i++)
                packet.ReadInt32("Unk");

            for (var i = 0; i < count; i++)
            {
                packet.ReadInt32("Unk");
                packet.ReadInt32("Unk");
            }

            for (var i = 0; i < count; i++)
                packet.ReadInt32("Unk");

            for (var i = 0; i < count; i++)
                packet.Writer.WriteLine(packet.ReadPackedTime());
        }
开发者ID:Asdcrew,项目名称:WowPacketParser,代码行数:33,代码来源:TestHandler.cs

示例14: HandleCalendarEventInviteAlert

        public static void HandleCalendarEventInviteAlert(Packet packet)
        {
            // TODO: find unks

            packet.ReadUInt64("EventID");
            packet.ReadPackedTime("Date");
            packet.ReadInt32E<CalendarFlag>("Flags");

            packet.ReadByteE<CalendarEventType>("EventType");

            packet.ReadInt32("TextureID");

            packet.ReadPackedGuid128("EventGuildID");

            packet.ReadUInt64("InviteID");

            packet.ReadByteE<CalendarEventStatus>("Status");
            packet.ReadByteE<CalendarModerationRank>("ModeratorStatus");

            packet.ReadPackedGuid128("OwnerGUID | InvitedByGUID");
            packet.ReadPackedGuid128("OwnerGUID | InvitedByGUID");

            var eventNameLength = packet.ReadBits("EventNameLength", 8);
            packet.ResetBitReader();

            packet.ReadWoWString("EventName", eventNameLength);
        }
开发者ID:TrinityCore,项目名称:WowPacketParser,代码行数:27,代码来源:CalendarHandler.cs

示例15: HandleLoginSetTimeSpeed

 public static void HandleLoginSetTimeSpeed(Packet packet)
 {
     packet.ReadPackedTime("Game Time");
     packet.ReadUInt32("bit5");
     packet.ReadUInt32("bit7");
     packet.ReadUInt32("bit6");
     packet.ReadSingle("Game Speed");
 }
开发者ID:Resike,项目名称:WowPacketParser,代码行数:8,代码来源:MovementHandler.cs


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